Used to give Registered Users the right to do anything that Visitors can do.
This has been removed in favour of the new Everyone group, which contains everyone who reads the site.
This commit is contained in:
parent
d3713f12d1
commit
0bf9cecdf9
1 changed files with 5 additions and 3 deletions
|
|
@ -91,9 +91,11 @@ sub isInGroup {
|
|||
$uid = $session{user}{userId};
|
||||
}
|
||||
($result) = WebGUI::SQL->quickArray("select count(*) from groupings where groupId='$gid' and userId='$uid' and expireDate>".time());
|
||||
if ($result < 1 && $gid == 1) { # registered users can
|
||||
$result = isInGroup(2, $uid); # do anything visitors
|
||||
} # can do
|
||||
|
||||
if ($gid == 7) {
|
||||
return 1; # If the "Everyone" group is specified then return true regardless of the user.
|
||||
}
|
||||
|
||||
if ($result < 1 && $gid != 3) { # admins can
|
||||
$result = isInGroup(3, $uid); # do anything any
|
||||
} # user can do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue