From b71adf33c0f123e1e7a47dfae4a80b3941d8bac6 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 27 Mar 2008 09:34:46 +0000 Subject: [PATCH] Fixed macro parameter acls git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10017 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../gofon/gofon/macro/class_gofonMacroParameters.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gosa-plugins/gofon/gofon/macro/class_gofonMacroParameters.inc b/gosa-plugins/gofon/gofon/macro/class_gofonMacroParameters.inc index 21f653218..b1d2ede9b 100644 --- a/gosa-plugins/gofon/gofon/macro/class_gofonMacroParameters.inc +++ b/gosa-plugins/gofon/gofon/macro/class_gofonMacroParameters.inc @@ -179,7 +179,11 @@ class macroParameter extends plugin /* Get acls for this tab, there is only one attribute to write, so we use the acls from gofon/marco */ - $ACLs = $this->ui->get_permissions($this->dn,"gofonmacro/macro","goFonMarcoContent"); + if($this->is_new){ + $ACLs = $this->ui->get_permissions($this->base,"gofonmacro/macro","goFonMacroContent"); + }else{ + $ACLs = $this->ui->get_permissions($this->dn,"gofonmacro/macro","goFonMacroContent"); + } /* get current content */ $macroManagment = session::get('macroManagment') ; -- 2.30.2