From: hickert Date: Wed, 16 Jul 2008 11:15:17 +0000 (+0000) Subject: Fixed group move permission check. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8dedb60f61d619c58690dd7ca6b794a7961ed45c;p=gosa.git Fixed group move permission check. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11680 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/admin/groups/class_groupGeneric.inc b/gosa-core/plugins/admin/groups/class_groupGeneric.inc index d7937749b..9cc0e5c42 100644 --- a/gosa-core/plugins/admin/groups/class_groupGeneric.inc +++ b/gosa-core/plugins/admin/groups/class_groupGeneric.inc @@ -1152,13 +1152,18 @@ class group extends plugin } } - + /* 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->orig_dn != "new" && $this->orig_base && !$this->acl_is_moveable($this->base)){ - $message[] = msgPool::permMove(); + if(!$this->orig_dn == "new" || + $this->orig_base != $this->base || + $this->cn != $this->orig_cn){ + + if($this->orig_dn == "new" && !$this->acl_is_createable($this->base)){ + $message[] = msgPool::permCreate(); + }elseif($this->orig_dn != "new" && !$this->acl_is_moveable($this->base)){ + $message[] = msgPool::permMove(); + } } return ($message);