diff --git a/gosa-plugins/gofon/gofon/macro/class_gofonMacroParameters.inc b/gosa-plugins/gofon/gofon/macro/class_gofonMacroParameters.inc
index 21f65321876afd4684ad32aafa459052af147b56..b1d2ede9b64f2c12aec300c21b7760fd8bf29733 100644 (file)
/* 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') ;