From 8dedb60f61d619c58690dd7ca6b794a7961ed45c Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 16 Jul 2008 11:15:17 +0000 Subject: [PATCH] Fixed group move permission check. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11680 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../plugins/admin/groups/class_groupGeneric.inc | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) 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); -- 2.30.2