Code

Set acls for copy&paste
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 3 Nov 2006 08:32:29 +0000 (08:32 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 3 Nov 2006 08:32:29 +0000 (08:32 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5004 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/users/class_userManagement.inc
plugins/personal/generic/class_user.inc

index 6d005b802f39f51495cfdf8a4717083e90824799..027473faf4f6fa98d50aa09f20ed4db96d2ad8f2 100644 (file)
@@ -818,7 +818,12 @@ class userManagement extends plugin
         $this->CopyPasteHandler->Clear();
         $dn= $this->list[trim($s_entry)]['dn'];
         $obj    = new usertabs($this->config, $this->config->data['TABS']['USERTABS'], $dn);
+        $obj->set_acl_base($dn);
+        $obj->set_acl_category("users");
         $objNew = new usertabs($this->config, $this->config->data['TABS']['USERTABS'], "new");
+        $objNew->set_acl_base($dn);
+        $objNew->set_acl_category("users");
+
         $this->CopyPasteHandler->Copy($obj,$objNew);
       }
 
@@ -828,6 +833,8 @@ class userManagement extends plugin
         $this->CopyPasteHandler->Clear();
         $dn= $this->list[trim($s_entry)]['dn'];
         $obj= new usertabs($this->config, $this->config->data['TABS']['USERTABS'], $dn);
+        $obj->set_acl_base($dn);
+        $obj->set_acl_category("users");
         $this->CopyPasteHandler->Cut($obj);
       }
     }
index 95ca9a76bbe10a05c0e790c22534e4c7f35ecd2e..53b986073c2f732e93431ab48dcd7a298a4f7d34 100644 (file)
@@ -1249,6 +1249,8 @@ class user extends plugin
 
   function saveCopyDialog()
   {
+    /* Set_acl_base */
+    $this->set_acl_base("cn=dummy,".get_people_ou().$this->base);
 
     if((isset($_FILES['picture_file']['tmp_name'])) && ($_FILES['picture_file']['size'] > 0)){
       $this->set_picture($_FILES['picture_file']['tmp_name']);