From d9e4d1a4377511e5da0defaf084d91047132a955 Mon Sep 17 00:00:00 2001 From: Matthew Wilson Date: Thu, 17 Mar 2005 01:03:40 +0000 Subject: [PATCH] - fix [ 1149585 ] visitor as admin another change - prevent visitors group from being added to any other groups --- lib/WebGUI/Grouping.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/WebGUI/Grouping.pm b/lib/WebGUI/Grouping.pm index 00933a5c0..e95485474 100755 --- a/lib/WebGUI/Grouping.pm +++ b/lib/WebGUI/Grouping.pm @@ -72,6 +72,7 @@ An array reference containing the list of group ids to add the first list to. sub addGroupsToGroups { delete $session{isInGroup}; foreach my $gid (@{$_[0]}) { + next if ($gid eq '1'); foreach my $toGid (@{$_[1]}) { my ($isIn) = WebGUI::SQL->quickArray("select count(*) from groupGroupings where groupId=".quote($gid)." and inGroup=".quote($toGid));