From a4111981b4d397d94826a8ee8d76fb032aaef4b3 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 23 Oct 2008 09:05:49 +0000 Subject: [PATCH] Updated gotoLpdEnable class -Added Acl. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12762 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../systems/goto/class_gotoLpdEnabled.inc | 5 ++++- .../systems/goto/class_terminalService.inc | 2 +- .../goto/admin/systems/goto/gotoLpdEnable.tpl | 22 +++++++++++++++++++ 3 files changed, 27 insertions(+), 2 deletions(-) diff --git a/gosa-plugins/goto/admin/systems/goto/class_gotoLpdEnabled.inc b/gosa-plugins/goto/admin/systems/goto/class_gotoLpdEnabled.inc index beec5b7ad..5738c0ec4 100644 --- a/gosa-plugins/goto/admin/systems/goto/class_gotoLpdEnabled.inc +++ b/gosa-plugins/goto/admin/systems/goto/class_gotoLpdEnabled.inc @@ -26,7 +26,6 @@ class gotoLpdEnable extends plugin private $a_Speeds = array(); // private $a_Bits = array(); // private $a_Devices = array(); - public $attributes = array("s_Type","s_Device","i_Port","s_Options","s_WriteOnly", "s_Speed","s_FlowControl","s_Parity","i_Bit"); @@ -122,6 +121,7 @@ class gotoLpdEnable extends plugin /* Set smarty variables */ $smarty = get_smarty(); + $smarty->assign("acl",$this->parent->getacl("gotoLpdEnable")); foreach($this->attributes as $attr){ $smarty->assign($attr,$this->$attr); } @@ -166,6 +166,9 @@ class gotoLpdEnable extends plugin */ public function save_object() { + if(!$this->parent->acl_is_writeable("gotoLpdEnable")){ + return; + } if(!isset($_POST['gotoLpdEnable_entry_posted'])){ return; diff --git a/gosa-plugins/goto/admin/systems/goto/class_terminalService.inc b/gosa-plugins/goto/admin/systems/goto/class_terminalService.inc index 8d3686042..9236b8bec 100644 --- a/gosa-plugins/goto/admin/systems/goto/class_terminalService.inc +++ b/gosa-plugins/goto/admin/systems/goto/class_terminalService.inc @@ -694,8 +694,8 @@ class termservice extends plugin "gotoXHsync" => _("HSync"), "gotoXVsync" => _("VSync"), "AutoSync" => _("Auto-Sync"), - "gotoLpdServer" => _("Spool server"), "gotoScannerEnable" => _("Scanner enabled"), + "gotoLpdEnable" => _("Printer enabled"), "gotoXKbModel" => _("Keyboard model"), "gotoXKbLayout" => _("Keyboard layout"), "gotoXKbVariant" => _("Keyboard variant"), diff --git a/gosa-plugins/goto/admin/systems/goto/gotoLpdEnable.tpl b/gosa-plugins/goto/admin/systems/goto/gotoLpdEnable.tpl index 438068495..daff63c3c 100644 --- a/gosa-plugins/goto/admin/systems/goto/gotoLpdEnable.tpl +++ b/gosa-plugins/goto/admin/systems/goto/gotoLpdEnable.tpl @@ -6,9 +6,11 @@ + {/render}
+ {render acl=$acl}  {t}Enable printer settings{/t}
@@ -40,41 +42,53 @@ --> + {render acl=$acl}  {t}Enable printer settings{/t} + {/render} {t}Type{/t} + {render acl=$acl} + {/render} {t}Device{/t} + {render acl=$acl} + {/render} {t}Port{/t} + {render acl=$acl} + {/render} {t}Options{/t} + {render acl=$acl} + {/render} {t}Write only{/t} + {render acl=$acl} + {/render} @@ -85,33 +99,41 @@ {t}Bit rate{/t} + {render acl=$acl} + {/render} {t}Flow control{/t} + {render acl=$acl} + {/render} {t}Parity{/t} + {render acl=$acl} + {/render} {t}Bits{/t} + {render acl=$acl} + {/render} -- 2.30.2