readded some performance enhancers
This commit is contained in:
parent
b26ae240ff
commit
6ea3d10e96
1 changed files with 14 additions and 14 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue