fixed acl error in events list pandora_enterprise#9794

This commit is contained in:
Daniel Barbero 2022-11-10 13:13:44 +01:00
parent 240bab48ec
commit 4385442690
1 changed files with 1 additions and 2 deletions

View File

@ -1657,8 +1657,7 @@ function events_get_all(
return $sql;
}
if (!$user_is_admin) {
// XXX: Confirm there's no extra grants unhandled!.
if (!$user_is_admin && users_can_manage_group_all('ER') === false) {
$can_manage = '0 as user_can_manage';
if (empty($EM_groups) === false) {
$can_manage = sprintf(