mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 00:04:37 +02:00
#12879 fixed problem with validation acl in delete group
This commit is contained in:
parent
ecb8c9f0c7
commit
a432ae4d2d
@ -560,13 +560,13 @@ if ($is_management_allowed === true && $update_group === true) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$id_group = (int) get_parameter('id_group');
|
||||||
|
|
||||||
// Delete group.
|
// Delete group.
|
||||||
if ($is_management_allowed === true
|
if ($is_management_allowed === true
|
||||||
&& $delete_group === true
|
&& $delete_group === true
|
||||||
&& ((bool) check_acl($config['id_user'], 0, 'PM') === true)
|
&& ((bool) check_acl($config['id_user'], $id_group, 'PM') === true)
|
||||||
) {
|
) {
|
||||||
$id_group = (int) get_parameter('id_group');
|
|
||||||
|
|
||||||
$usedGroup = groups_check_used($id_group);
|
$usedGroup = groups_check_used($id_group);
|
||||||
|
|
||||||
if (!$usedGroup['return']) {
|
if (!$usedGroup['return']) {
|
||||||
|
@ -107,7 +107,7 @@ class Tree
|
|||||||
|
|
||||||
$userGroupsACL = users_get_groups(false, $this->access);
|
$userGroupsACL = users_get_groups(false, $this->access);
|
||||||
|
|
||||||
$this->userGroupsACL = empty($userGroupsACL) ? false : $userGroupsACL;
|
$this->userGroupsACL = empty($userGroupsACL) ? [0] : $userGroupsACL;
|
||||||
$this->userGroups = $this->userGroupsACL;
|
$this->userGroups = $this->userGroupsACL;
|
||||||
$this->userGroupsArray = array_keys($this->userGroups);
|
$this->userGroupsArray = array_keys($this->userGroups);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user