From cc153c7c94f118ed6dbe2c46faeaff464774ba69 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 28 Sep 2006 03:08:11 +0000 Subject: [PATCH] Fixed deparment acl probs git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4801 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/departments/class_departmentGeneric.inc | 2 +- plugins/admin/departments/class_divListDepartment.inc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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")." ". "