Code

Fixed deparment acl probs
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 28 Sep 2006 03:08:11 +0000 (03:08 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 28 Sep 2006 03:08:11 +0000 (03:08 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4801 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/departments/class_departmentGeneric.inc
plugins/admin/departments/class_divListDepartment.inc

index 3b6daee52d8093460ba9b38e69918c1bd64a7a11..c4631f77122ede52adad6555fec71f42f7cbdfbc 100644 (file)
@@ -220,7 +220,7 @@ class department extends plugin
 
                /* Permissions for that base? */
                //      $this->dn= "ou=$this->ou,".$this->base;
-               if ($this->acl_is_createable() && $this->dn == "new"){
+               if (!$this->acl_is_createable() && $this->dn == "new"){
                        $message[]= _("You have no permissions to create a department on this 'Base'.");
                }
 
index 5bb5c9d6e3f0c3ecfd1207f65d9220dc7324e6c0..714570fd6978c769b7925ddd2951870ab18f5f31 100755 (executable)
@@ -66,7 +66,7 @@ class divListDepartment extends MultiSelectWindow
 
     /* Generate list head */
     $ui = get_userinfo();
-    $acl = $ui->get_permissions("ou=dummy,",$this->selectedBase  ,"department/department");
+    $acl = $ui->get_permissions("ou=dummy,".$this->selectedBase  ,"department/department");
 
     $listhead = "<div style='background:#F0F0F9;padding:5px;'>".
       " <input type='image' class='center' src='images/list_root.png' align='middle' ".
@@ -85,7 +85,7 @@ class divListDepartment extends MultiSelectWindow
     }
   
 
-    $listhead .= " <img class='center' src='images/list_seperator.png' align='middle' ".
+    $listhead .= $acl." <img class='center' src='images/list_seperator.png' align='middle' ".
       " alt='' height='16' width='1'>&nbsp;".
       " "._("Base")."&nbsp;<select name='CurrentMainBase' onChange='mainform.submit()' class='center'>$options</select>".
       " <input class='center' type='image' src='images/list_submit.png' align='middle' ".