From 0bf9cecdf99b7f5fd26418d581fe32ea10648532 Mon Sep 17 00:00:00 2001 From: Doug Collinge Date: Sun, 12 May 2002 21:17:13 +0000 Subject: [PATCH] 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. --- lib/WebGUI/Privilege.pm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/WebGUI/Privilege.pm b/lib/WebGUI/Privilege.pm index 22f61192b..2c43ac334 100644 --- a/lib/WebGUI/Privilege.pm +++ b/lib/WebGUI/Privilege.pm @@ -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