mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
Merge branch '237-editar-modulo-web-no-enlazado-a-politica-integria-4421/open' into 'develop'
Enable fields in web modules created by policy when is unlinked - #237 See merge request !137
This commit is contained in:
commit
c6af6cd530
@ -108,7 +108,12 @@ $page = get_parameter('page', '');
|
|||||||
|
|
||||||
if (strstr($page, "policy_modules") === false && $id_agent_module) {
|
if (strstr($page, "policy_modules") === false && $id_agent_module) {
|
||||||
if ($config['enterprise_installed'])
|
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
|
else
|
||||||
$disabledBecauseInPolicy = false;
|
$disabledBecauseInPolicy = false;
|
||||||
if ($disabledBecauseInPolicy)
|
if ($disabledBecauseInPolicy)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user