From 0914e50673462a37ab934676fa31832509c7ad8f Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 16 Feb 2010 15:04:31 +0000 Subject: [PATCH] Updated plugin initialization - We better have a valid acl_category set during __construction, if not get it from the plugin definitions git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15631 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_plugin.inc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gosa-core/include/class_plugin.inc b/gosa-core/include/class_plugin.inc index bb5bd9e87..6bef2744e 100644 --- a/gosa-core/include/class_plugin.inc +++ b/gosa-core/include/class_plugin.inc @@ -145,6 +145,16 @@ class plugin $this->config= &$config; $this->dn= $dn; + // Ensure that we've a valid acl_category set. + if(empty($this->acl_category)){ + $tmp = $this->plInfo(); + $c = key($tmp['plCategory']); + if(is_numeric($c)){ + $c = $tmp['plCategory'][0]; + } + $this->acl_category = $c."/"; + } + /* Handle new accounts, don't read information from LDAP */ if ($dn == "new"){ return; -- 2.30.2