10669 fix revision

This commit is contained in:
Jose Gonzalez 2023-03-14 09:05:59 +01:00
parent 397c4bd720
commit e71014607a
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ if ($enterprise_include === true) {
$id = get_parameter('id', get_parameter('id_user', ''));
// Check if we are the same user for edit or we have a proper profile for edit users.
if ($id !== $config['id_user']) {
if ((is_centralized() === true) || (bool) check_acl($config['id_user'], 0, 'UM') === false) {
if ((bool) check_acl($config['id_user'], 0, 'UM') === false) {
db_pandora_audit(
AUDIT_LOG_ACL_VIOLATION,
'Trying to access User Management'