Verified Commit 59f7acd9 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

🚑 fix(supann) Make sure structures have correct ACL base

parent 7d1f502b
......@@ -108,6 +108,10 @@ class entite extends simplePlugin
global $config;
parent::__construct($dn, $object, $parent, $mainTab);
if (empty($this->acl_base)) {
$this->set_acl_base($config->current['BASE']);
}
$ldap = $config->get_ldap_link();
$ldap->cd($config->current['BASE']);
$ldap->search('(objectClass=supannEntite)', array('supannCodeEntite','ou','o'));
......
......@@ -120,6 +120,10 @@ class etablissement extends simplePlugin
{
parent::__construct($dn, $object, $parent, $mainTab);
if (empty($this->acl_base)) {
$this->set_acl_base($config->current['BASE']);
}
$this->attributesAccess['o']->setUnique(TRUE);
$this->attributesAccess['supannCodeEntite']->setUnique(TRUE);
$this->attributesAccess['supannEtablissement']->setUnique(TRUE);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment