summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3e9b8de)
raw | patch | inline | side by side (parent: 3e9b8de)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 28 May 2008 10:12:00 +0000 (10:12 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 28 May 2008 10:12:00 +0000 (10:12 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11081 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/plugins/admin/departments/class_departmentGeneric.inc | patch | blob | history |
diff --git a/gosa-core/plugins/admin/departments/class_departmentGeneric.inc b/gosa-core/plugins/admin/departments/class_departmentGeneric.inc
index b3c8819e37d164da25dcdc2e26b0e6ed5a9ef8ee..8f55619e44857c6a86959bcd86a7a736292b472b 100644 (file)
var $businessCategory= "";
var $telephoneNumber= "";
var $facsimileTelephoneNumber= "";
- var $orig_dn= "";
var $is_administrational_unit= false;
var $gosaUnitTag= "";
var $view_logged = FALSE;
$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;
}