summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0abc1a4)
raw | patch | inline | side by side (parent: 0abc1a4)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 16 Feb 2010 15:04:31 +0000 (15:04 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 16 Feb 2010 15:04:31 +0000 (15:04 +0000) |
- 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
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15631 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_plugin.inc | patch | blob | history |
index bb5bd9e87b0cd310fa2ec80b50471993504ef6ad..6bef2744e5f3902ae0f940e7667516d17822b4f0 100644 (file)
$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;