#11554 Fix bulk operations

This commit is contained in:
miguel angel rasteu 2023-06-19 13:45:20 +02:00
parent ad45202484
commit aec0324646
2 changed files with 2 additions and 5 deletions

View File

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

View File

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