From a1048301e848a1a1c3b22352cc8c0be7139528ce Mon Sep 17 00:00:00 2001 From: marcos Date: Mon, 5 Oct 2020 09:02:11 +0200 Subject: [PATCH] add new acl on delete agent api/cli --- pandora_console/include/functions_api.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pandora_console/include/functions_api.php b/pandora_console/include/functions_api.php index c1c539e8d3..6401910faa 100644 --- a/pandora_console/include/functions_api.php +++ b/pandora_console/include/functions_api.php @@ -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; }