Merge branch 'ent-11554-operaciones-masivas-en-metaconsola-solo-accesibles-como-administrador' into 'develop'

Ent 11554 operaciones masivas en metaconsola solo accesibles como administrador

See merge request artica/pandorafms!6136
This commit is contained in:
Rafael Ameijeiras 2023-06-20 06:17:07 +00:00
commit c451ee6fc5
2 changed files with 2 additions and 5 deletions

View File

@ -31,7 +31,7 @@ check_login();
global $config; global $config;
if (users_is_admin() === false) { if (check_acl($config['id_user'], 0, 'UM') !== 1) {
db_pandora_audit( db_pandora_audit(
AUDIT_LOG_ACL_VIOLATION, AUDIT_LOG_ACL_VIOLATION,
'Trying to access massive edit users' 'Trying to access massive edit users'

View File

@ -70,16 +70,13 @@ $options_agents = [
]; ];
if (check_acl($config['id_user'], 0, 'UM')) { if (check_acl($config['id_user'], 0, 'UM')) {
$options_users['edit_users'] = __('Edit users in bulk');
if (is_metaconsole() === false) { if (is_metaconsole() === false) {
$options_users = [ $options_users = [
'add_profiles' => __('Bulk profile add'), 'add_profiles' => __('Bulk profile add'),
'delete_profiles' => __('Bulk profile delete'), 'delete_profiles' => __('Bulk profile delete'),
]; ];
} }
if (users_is_admin() === true) {
$options_users['edit_users'] = __('Edit users in bulk');
}
} else { } else {
$options_users = []; $options_users = [];
} }