mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 01:05:39 +02:00
#9440 Change permissions on planned_downtimes_additem to AR
This commit is contained in:
parent
c889f092ce
commit
e311602520
@ -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]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user