From 17d530f59e72d5fa92654e78570393e7ce34864a Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 28 May 2008 09:40:28 +0000 Subject: [PATCH] Added create move acls git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11071 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../goto/admin/mimetypes/class_mimetypeGeneric.inc | 11 +++++++++++ 1 file changed, 11 insertions(+) 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); } -- 2.30.2