From 0523a784c2b6df1835666d0ab58de6dba5a75164 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 3 Nov 2006 08:32:29 +0000 Subject: [PATCH] Set acls for copy&paste git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5004 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/users/class_userManagement.inc | 7 +++++++ plugins/personal/generic/class_user.inc | 2 ++ 2 files changed, 9 insertions(+) diff --git a/plugins/admin/users/class_userManagement.inc b/plugins/admin/users/class_userManagement.inc index 6d005b802..027473faf 100644 --- a/plugins/admin/users/class_userManagement.inc +++ b/plugins/admin/users/class_userManagement.inc @@ -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); } } diff --git a/plugins/personal/generic/class_user.inc b/plugins/personal/generic/class_user.inc index 95ca9a76b..53b986073 100644 --- a/plugins/personal/generic/class_user.inc +++ b/plugins/personal/generic/class_user.inc @@ -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']); -- 2.30.2