From: cajus Date: Mon, 11 Sep 2006 11:14:39 +0000 (+0000) Subject: Fixed acl's for app options X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=87b3b2dafc51a4fd3a9abb410dca989808d91299;p=gosa.git Fixed acl's for app options git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4641 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/applications/class_applicationParameters.inc b/plugins/admin/applications/class_applicationParameters.inc index 310efad57..426bbf190 100644 --- a/plugins/admin/applications/class_applicationParameters.inc +++ b/plugins/admin/applications/class_applicationParameters.inc @@ -90,18 +90,27 @@ class applicationParameters extends plugin $this->option_name[]= ""; $this->option_value[]= ""; } + + $mode= ""; + if (chkacl($this->acl, "create") != ""){ + $mode= "disabled"; + } + $table= ""; if (count ($this->option_name)){ for ($i= 0; $i < count($this->option_name); $i++){ $table.=""; + _("Remove")."\" $mode>"; } } $table.= "
"._("Variable").""._("Default value")."
option_name[$i]."\">option_value[$i]."\">
". + "value=\"".$this->option_name[$i]."\" $mode>option_value[$i]."\" $mode>
". "
"; - $table.=""; + + if ($mode == ""){ + $table.=""; + } /* Show main page */ $smarty= get_smarty();