- fix [ 1149585 ] visitor as admin
another change - prevent visitors group from being added to any other groups
This commit is contained in:
parent
848183a582
commit
d9e4d1a437
1 changed files with 1 additions and 0 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue