- fix [ 1149585 ] visitor as admin
This commit is contained in:
parent
3a78433318
commit
848183a582
2 changed files with 4 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
|||
6.5.3
|
||||
- fix [ 1161457 ] Data fomr - list all entries: Logfile Error
|
||||
- fix [ 1161461 ] Data form - Add field - wrong destination
|
||||
|
||||
- fix [ 1149585 ] visitor as admin
|
||||
|
||||
|
||||
6.5.2
|
||||
|
|
|
|||
|
|
@ -333,7 +333,9 @@ sub isInGroup {
|
|||
$uid = $session{user}{userId} if ($uid eq "");
|
||||
### The following several checks are to increase performance. If this section were removed, everything would continue to work as normal.
|
||||
return 1 if ($gid eq '7'); # everyone is in the everyone group
|
||||
return 1 if ($gid eq '1' && $uid eq '1'); # visitors are in the visitors group
|
||||
return 1 if ($gid eq '1' && $uid eq '1'); # visitors are in the visitors group
|
||||
return 0 if ($uid eq '1'); #Visitor is in no other groups
|
||||
return 1 if ($uid eq '3'); #Admin is in every group
|
||||
return 1 if ($gid eq '2' && $uid ne '1'); # if you're not a visitor, then you're a registered user
|
||||
### Look to see if we've already looked up this group.
|
||||
if ($session{isInGroup}{$uid}{$gid} eq '1') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue