From 87b3b2dafc51a4fd3a9abb410dca989808d91299 Mon Sep 17 00:00:00 2001 From: cajus Date: Mon, 11 Sep 2006 11:14:39 +0000 Subject: [PATCH] Fixed acl's for app options git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4641 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../class_applicationParameters.inc | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) 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(); -- 2.30.2