Enable fields in web modules created by policy when is unlinked - #237

This commit is contained in:
enriquecd 2017-02-08 16:54:17 +01:00
parent 87a11a7d20
commit 294d95481c
1 changed files with 6 additions and 1 deletions

View File

@ -108,7 +108,12 @@ $page = get_parameter('page', '');
if (strstr($page, "policy_modules") === false && $id_agent_module) {
if ($config['enterprise_installed'])
$disabledBecauseInPolicy = policies_is_module_in_policy($id_agent_module) && policies_is_module_linked($id_agent_module);
if(policies_is_module_linked($id_agent_module) == 1){
$disabledBecauseInPolicy = 1;
}
else{
$disabledBecauseInPolicy = 0;
}
else
$disabledBecauseInPolicy = false;
if ($disabledBecauseInPolicy)