Admins are in all groups, even group admin groups
This commit is contained in:
parent
572e8533c6
commit
d6aecc2d90
1 changed files with 2 additions and 0 deletions
|
|
@ -1382,6 +1382,8 @@ sub userIsAdmin {
|
|||
$self->session->db->write("update groupings set groupAdmin=? where groupId=? and userId=?",[$value, $self->getId, $userId]);
|
||||
return $value;
|
||||
} else {
|
||||
my $user = WebGUI::User->new($self->session, $userId);
|
||||
return 1 if $user->isInGroup(3);
|
||||
my ($admin) = $self->session->db->quickArray("select groupAdmin from groupings where groupId=? and userId=?", [$self->getId, $userId]);
|
||||
return ($admin ? 1 : 0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue