Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Commit af0b102

Browse files
kduretMatthieu Kermagoret
authored andcommitted
fix(acl): always export acl groups as changed
1 parent 7ce81af commit af0b102

File tree

1 file changed

+18
-0
lines changed
  • www/modules/centreon-poller-display-central/core/class/configGenerate/centreon

1 file changed

+18
-0
lines changed

www/modules/centreon-poller-display-central/core/class/configGenerate/centreon/AclGroups.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,4 +95,22 @@ public function getList($clauseContactObject = null, $clauseContactgObject = nul
9595

9696
return $list;
9797
}
98+
99+
/**
100+
*
101+
* @param type $objects
102+
* @return string
103+
*/
104+
protected function generateInsertQuery($objects)
105+
{
106+
foreach ($objects as &$object) {
107+
foreach ($object as $key => &$value) {
108+
if ($key == "acl_group_changed") {
109+
$value = 1;
110+
}
111+
}
112+
}
113+
114+
return parent::generateInsertQuery($objects);
115+
}
98116
}

0 commit comments

Comments
 (0)