Code

Fixed group move permission check.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 16 Jul 2008 11:15:17 +0000 (11:15 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 16 Jul 2008 11:15:17 +0000 (11:15 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11680 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/admin/groups/class_groupGeneric.inc

index d7937749bc2fdeba354a2b730a9e13f6070787de..9cc0e5c423fd5f062649c075ab82fed3d9c90e9e 100644 (file)
@@ -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);