From: hickert Date: Thu, 28 Sep 2006 03:08:11 +0000 (+0000) Subject: Fixed deparment acl probs X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=cc153c7c94f118ed6dbe2c46faeaff464774ba69;p=gosa.git Fixed deparment acl probs git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4801 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/departments/class_departmentGeneric.inc b/plugins/admin/departments/class_departmentGeneric.inc index 3b6daee52..c4631f771 100644 --- a/plugins/admin/departments/class_departmentGeneric.inc +++ b/plugins/admin/departments/class_departmentGeneric.inc @@ -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'."); } diff --git a/plugins/admin/departments/class_divListDepartment.inc b/plugins/admin/departments/class_divListDepartment.inc index 5bb5c9d6e..714570fd6 100755 --- a/plugins/admin/departments/class_divListDepartment.inc +++ b/plugins/admin/departments/class_divListDepartment.inc @@ -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 = "
". "  ". " "._("Base")." ". "