Merge branch 'ent-9794-14509-permisos-sobre-acciones-de-eventos-usuario' into 'develop'

fixed acl error in events list pandora_enterprise#9794

See merge request artica/pandorafms!5260
This commit is contained in:
Diego Muñoz-Reja 2022-11-10 15:48:36 +00:00
commit 0a8405bc29
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(