- fix [ 1149585 ] visitor as admin

another change - prevent visitors group from being added to any other groups
This commit is contained in:
Matthew Wilson 2005-03-17 01:03:40 +00:00
parent 848183a582
commit d9e4d1a437

View file

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