readded some performance enhancers

This commit is contained in:
JT Smith 2004-02-10 02:49:46 +00:00
parent b26ae240ff
commit 6ea3d10e96

View file

@ -264,20 +264,20 @@ sub isInGroup {
$uid = $session{user}{userId} if ($uid eq "");
#The several checks are to increase performance. If this section were removed, everything would continue to work as normal.
# if ($gid == 7) {
# return 1;
# }
# if ($gid == 1) {
# if ($uid == 1) {
# return 1;
# } else {
# return 0;
# }
# }
# if ($gid==2 && $uid != 1) {
# return 1;
# }
### The following several checks are to increase performance. If this section were removed, everything would continue to work as normal.
if ($gid == 7) {
return 1;
}
if ($gid == 1) {
if ($uid == 1) {
return 1;
} else {
return 0;
}
}
if ($gid==2 && $uid != 1) {
return 1;
}