add new acl on delete agent api/cli

This commit is contained in:
marcos 2020-10-05 09:02:11 +02:00
parent b1d218d875
commit a1048301e8

View File

@ -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;
}