Commit 10333046 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Merge branch '5880-templates-are-needed-on-supann-structures' into '1.4-dev'

Resolve "Templates are needed on Supann structures"

See merge request fusiondirectory/fd-plugins!379
parents 7d1f502b 59f7acd9
......@@ -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