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:
Doug Collinge 2002-05-12 21:17:13 +00:00
parent d3713f12d1
commit 0bf9cecdf9

View file

@ -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