mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Fixed create services
This commit is contained in:
parent
2dc5bc1139
commit
a9e162a199
@ -476,7 +476,7 @@ function modules_create_agent_module ($id_agent, $name, $values = false, $disabl
|
||||
global $config;
|
||||
|
||||
if (!$disableACL) {
|
||||
if (empty ($id_agent) || ! users_access_to_agent ($id_agent, 'AW'))
|
||||
if (!users_is_admin() && (empty ($id_agent) || ! users_access_to_agent ($id_agent, 'AW')))
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user