Code

Added dynamic acl divs for extended settings. Currently only firefox is supported.
[gosa.git] / plugins / admin / departments / class_departmentManagement.inc
index d622df9e7fe52eb0a0ac38e49bda60573e24a5f8..99f784c5a7703751a5dafbe97cba54b6ec4d1211 100644 (file)
@@ -344,6 +344,12 @@ class departmentManagement extends plugin
     }
 
     $this->departments= array();
+
+    /* Add current base to the list of available departments, but only if its naming attribute is 'ou' */
+    if(preg_match("/^ou=/",$base)){
+      $this->departments [ convert_department_dn($base) ] = ".";
+    }
+
     foreach ($res as $key => $value){
 
       /* Don't display base as entry on subsearch */
@@ -401,19 +407,6 @@ class departmentManagement extends plugin
     $this->DivListDepartment->save_object();
   }
 
-  function plInfo()
-  {
-    return (array("plDescription" => _("Departments"),
-                  "plSelfModify" => FALSE,
-                  "plDepends" => array("objectClass" => "gosaDepartment", "description" => _("Departments")),
-                  "description" => _("Description"),
-                  "c" => _("Country"),
-                  "l" => _("Location"),
-                  "telephoneNumber" => _("Telephone"),
-                  "ou" => _("Department name") ));
-  }
-
-  
 }
 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
 ?>