Code

Fixed macro parameter acls
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 27 Mar 2008 09:34:46 +0000 (09:34 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 27 Mar 2008 09:34:46 +0000 (09:34 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10017 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/gofon/gofon/macro/class_gofonMacroParameters.inc

index 21f65321876afd4684ad32aafa459052af147b56..b1d2ede9b64f2c12aec300c21b7760fd8bf29733 100644 (file)
@@ -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') ;