Code

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

gosa-core/plugins/personal/generic/class_user.inc

index b26e61fdccb9c65de055337797823bcb31af3b15..38172f4ffed62bd0729c50e4d46dddfcfb6ceffc 100644 (file)
@@ -1162,7 +1162,7 @@ class user extends plugin
 
     /* Check if we are allowed to create/move this user 
      */
-    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->new_dn != $this->orig_dn && !$this->acl_is_moveable($this->base)){
       $message[]= msgPool::permMove();