mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
Merge branch '2600-Error-al-crear-servicio-en-meta-dev' into 'develop'
Fixed create services See merge request artica/pandorafms!1661
This commit is contained in:
commit
ab3998e097
@ -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