From: hickert Date: Wed, 28 May 2008 09:40:28 +0000 (+0000) Subject: Added create move acls X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=17d530f59e72d5fa92654e78570393e7ce34864a;p=gosa.git Added create move acls git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11071 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/admin/mimetypes/class_mimetypeGeneric.inc b/gosa-plugins/goto/admin/mimetypes/class_mimetypeGeneric.inc index c5d52cf27..55cc1c784 100644 --- a/gosa-plugins/goto/admin/mimetypes/class_mimetypeGeneric.inc +++ b/gosa-plugins/goto/admin/mimetypes/class_mimetypeGeneric.inc @@ -49,6 +49,7 @@ class mimetype extends plugin /* Orig_Dn is used to verify if this object is new or only edited */ var $orig_dn = ""; + var $orig_base = ""; function mimetype(&$config,$dn= NULL) { @@ -140,6 +141,7 @@ class mimetype extends plugin } session::set('binary',$this->iconData); session::set('binarytype',"image/jpeg"); + $this->orig_base = $this->base; } @@ -544,6 +546,15 @@ class mimetype extends plugin $message[]= msgPool::duplicated("cn"); } } + + /* 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); }