From: hickert Date: Thu, 27 Mar 2008 09:34:46 +0000 (+0000) Subject: Fixed macro parameter acls X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b71adf33c0f123e1e7a47dfae4a80b3941d8bac6;p=gosa.git Fixed macro parameter acls git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10017 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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') ;