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:
commit
c451ee6fc5
|
@ -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'
|
||||
|
|
|
@ -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 = [];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue