Code

Updated create check
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 28 May 2008 10:09:23 +0000 (10:09 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 28 May 2008 10:09:23 +0000 (10:09 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11079 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/admin/ogroups/class_ogroup.inc

index 34464dcdc3af8470b25fe2a9499554b8babfe9a9..bdfd1f08b2ee70fcb9f14b164bb8544bd5e22733 100644 (file)
@@ -874,9 +874,9 @@ class ogroup extends plugin
 
     /* Check if we are allowed to create or move this object 
      */
-    if($this->dn == "new" && !$this->acl_is_createable($this->base)){
+    if($this->orig_dn == "new" && !$this->acl_is_createable($this->base)){
       $message[] = msgPool::permCreate();
-    }elseif($this->cn != $this->orig_cn || $this->base != $this->orig_base && !$this->acl_is_moveable($this->base)){
+    }elseif($this->base != $this->orig_base && !$this->acl_is_moveable($this->base)){
       $message[] = msgPool::permMove();
     }