From 0e64721ca50e25071e1a723bba0a574d2d190a2c Mon Sep 17 00:00:00 2001 From: Daniel Cebrian Date: Fri, 26 May 2023 12:37:37 +0200 Subject: [PATCH] #11374 fixed bulk operation user --- pandora_console/godmode/massive/massive_add_profiles.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pandora_console/godmode/massive/massive_add_profiles.php b/pandora_console/godmode/massive/massive_add_profiles.php index 38657bdf1c..6fa11d357f 100644 --- a/pandora_console/godmode/massive/massive_add_profiles.php +++ b/pandora_console/godmode/massive/massive_add_profiles.php @@ -109,7 +109,7 @@ if ($create_profiles) { } else { foreach ($profiles_id as $profile) { // Check profiles permissions for non admin user. - if (is_user_admin($config['user_id']) === false) { + if (is_user_admin($config['id_user']) === false) { $user_profiles = profile_get_profiles( [ 'pandora_management' => '<> 1', @@ -122,7 +122,7 @@ if ($create_profiles) { AUDIT_LOG_ACL_VIOLATION, 'Trying to add administrator profile whith standar user for user '.io_safe_input($user) ); - exit; + continue; } } @@ -132,7 +132,7 @@ if ($create_profiles) { AUDIT_LOG_ACL_VIOLATION, 'Trying to add profile group without permission for user '.io_safe_input($user) ); - exit; + continue; } foreach ($users_id as $user) { @@ -141,7 +141,7 @@ if ($create_profiles) { AUDIT_LOG_ACL_VIOLATION, 'Trying to edit user without permission for user '.io_safe_input($user) ); - exit; + continue; } $profile_data = db_get_row_filter('tusuario_perfil', ['id_usuario' => $user, 'id_perfil' => $profile, 'id_grupo' => $group]);