From 98960353c4ab97910a168746d86956c092f01d3f Mon Sep 17 00:00:00 2001 From: JT Smith Date: Sun, 12 May 2002 23:20:50 +0000 Subject: [PATCH] Slight performance tweak. --- lib/WebGUI/Privilege.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/WebGUI/Privilege.pm b/lib/WebGUI/Privilege.pm index 2c43ac334..73d3dec9c 100644 --- a/lib/WebGUI/Privilege.pm +++ b/lib/WebGUI/Privilege.pm @@ -90,12 +90,10 @@ sub isInGroup { if ($uid eq "") { $uid = $session{user}{userId}; } - ($result) = WebGUI::SQL->quickArray("select count(*) from groupings where groupId='$gid' and userId='$uid' and expireDate>".time()); - if ($gid == 7) { return 1; # If the "Everyone" group is specified then return true regardless of the user. } - + ($result) = WebGUI::SQL->quickArray("select count(*) from groupings where groupId='$gid' and userId='$uid' and expireDate>".time()); if ($result < 1 && $gid != 3) { # admins can $result = isInGroup(3, $uid); # do anything any } # user can do