From e311602520638978dfba02c0c7e28b43da538e3f Mon Sep 17 00:00:00 2001 From: Jonathan Date: Wed, 4 Jan 2023 09:52:47 +0100 Subject: [PATCH] #9440 Change permissions on planned_downtimes_additem to AR --- pandora_console/include/functions_api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/include/functions_api.php b/pandora_console/include/functions_api.php index 21ced0498b..db79ed3c86 100644 --- a/pandora_console/include/functions_api.php +++ b/pandora_console/include/functions_api.php @@ -7509,7 +7509,7 @@ function api_set_planned_downtimes_additem($id, $thrash1, $other, $thrash3) $bad_agents = []; $i = 0; foreach ($total_agents as $agent_id) { - $result_agent = agents_check_access_agent($agent_id, 'AD'); + $result_agent = agents_check_access_agent($agent_id, 'AR'); if (!$result_agent) { $bad_agents[] = $agent_id; unset($agents[$i]);