mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 01:05:39 +02:00
add new acl on delete agent api/cli
This commit is contained in:
parent
b1d218d875
commit
a1048301e8
@ -1851,7 +1851,9 @@ function api_set_delete_agent($id, $thrash1, $other, $thrash3)
|
||||
}
|
||||
|
||||
if (is_metaconsole()) {
|
||||
if (!check_acl($config['id_user'], 0, 'PM')) {
|
||||
if (!check_acl($config['id_user'], 0, 'PM')
|
||||
&& !check_acl($config['id_user'], 0, 'AW')
|
||||
) {
|
||||
returnError('forbidden', 'string');
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user