Merge branch 'ent-6394-api-delete-agent-no-funciona-meta' into 'develop'

add new acl on delete agent api/cli

See merge request artica/pandorafms!3499
This commit is contained in:
Daniel Rodriguez 2020-10-06 12:33:47 +02:00
commit b6cf44184d
1 changed files with 3 additions and 1 deletions

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