From f71d32eaca69ff4118e2cce9cbdf4ee62d844168 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 28 May 2008 10:12:00 +0000 Subject: [PATCH] Updated create acls git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11081 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../admin/departments/class_departmentGeneric.inc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/gosa-core/plugins/admin/departments/class_departmentGeneric.inc b/gosa-core/plugins/admin/departments/class_departmentGeneric.inc index b3c8819e3..8f55619e4 100644 --- a/gosa-core/plugins/admin/departments/class_departmentGeneric.inc +++ b/gosa-core/plugins/admin/departments/class_departmentGeneric.inc @@ -32,7 +32,6 @@ class department extends plugin var $businessCategory= ""; var $telephoneNumber= ""; var $facsimileTelephoneNumber= ""; - var $orig_dn= ""; var $is_administrational_unit= false; var $gosaUnitTag= ""; var $view_logged = FALSE; @@ -264,7 +263,15 @@ class department extends plugin $message[]= msgPool::invalid(_("Fax"), $this->facsimileTelephoneNumber, "/[\/0-9 ()+*-]/"); } - return $message; + /* Check if we are allowed to create or move this object + */ + if($this->orig_dn == "new" && !$this->acl_is_createable($this->base)){ + $message[] = msgPool::permCreate(); + }elseif($this->base != $this->orig_base && !$this->acl_is_moveable($this->base)){ + $message[] = msgPool::permMove(); + } + + return $message; } -- 2.30.2