mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +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;
|
global $config;
|
||||||
|
|
||||||
if (!$disableACL) {
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user