From fc2925284cb8319eb0144dded65430975431e9be Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 14 Jun 2007 08:10:42 +0000 Subject: [PATCH] Added copy & paste for acl roles git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6583 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/acl/class_aclRole.inc | 30 +++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/plugins/admin/acl/class_aclRole.inc b/plugins/admin/acl/class_aclRole.inc index 3d4e2aba1..aab0e6ec1 100644 --- a/plugins/admin/acl/class_aclRole.inc +++ b/plugins/admin/acl/class_aclRole.inc @@ -631,6 +631,36 @@ class aclrole extends acl } } + + function saveCopyDialog() + { + if(isset($_POST['cn'])){ + $this->cn = $_POST['cn']; + } + } + + + function getCopyDialog() + { + $smarty = get_smarty(); + $smarty->assign("cn",$this->cn); + $str = $smarty->fetch(get_template_path("paste_role.tpl",TRUE,dirname(__FILE__))); + $ret = array(); + $ret['string'] = $str; + $ret['status'] = ""; + return($ret); + } + + + function PrepareForCopyPaste($source) + { + plugin::PrepareForCopyPaste($source); + + $source_o = new aclrole($this->config,$source['dn']); + $this->gosaAclTemplate = $source_o->gosaAclTemplate; + } + + /* Return plugin informations for acl handling */ function plInfo() { -- 2.30.2