From b49fde772c76c2e050eb64b9049cc463fc3796dd Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 15 Jan 2007 04:15:36 +0000 Subject: [PATCH] Updated terminal tabs git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5552 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_terminalGeneric.inc | 3 ++- plugins/admin/systems/class_terminalStartup.inc | 4 +--- plugins/admin/systems/terminal.tpl | 4 ++-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/plugins/admin/systems/class_terminalGeneric.inc b/plugins/admin/systems/class_terminalGeneric.inc index cb446b879..d2bc6690a 100644 --- a/plugins/admin/systems/class_terminalGeneric.inc +++ b/plugins/admin/systems/class_terminalGeneric.inc @@ -257,6 +257,7 @@ class termgeneric extends plugin /* Fill templating stuff */ $smarty= get_smarty(); $smarty->assign("cn", $this->cn); + $smarty->assign("cnACL", chkacl($this->acl,"cn")); $smarty->assign("staticAddress", ""); $smarty->assign("bases", $this->config->idepartments); @@ -358,7 +359,7 @@ class termgeneric extends plugin $this->gotoTerminalPath; } - if(isset($_POST['termgeneric_posted'])){ + if(isset($_POST['termgeneric_posted']) && chkacl($this->acl,"gotoNtpServer") == ""){ if(isset($_POST["inheritTimeServer"])){ $this->inheritTimeServer = true; }else{ diff --git a/plugins/admin/systems/class_terminalStartup.inc b/plugins/admin/systems/class_terminalStartup.inc index d5894c839..c63edb99d 100644 --- a/plugins/admin/systems/class_terminalStartup.inc +++ b/plugins/admin/systems/class_terminalStartup.inc @@ -248,9 +248,7 @@ class termstartup extends plugin $use = " checked "; }; - if(chkacl($this->acl,"gotoLdapServer") == ""){ - $use.= " disabled "; - } + $use .= chkacl($this->acl,"gotoLdapServer"); $SelectBoxLdapServer->AddEntry( array( diff --git a/plugins/admin/systems/terminal.tpl b/plugins/admin/systems/terminal.tpl index 4de4cc904..e8444efa8 100644 --- a/plugins/admin/systems/terminal.tpl +++ b/plugins/admin/systems/terminal.tpl @@ -9,7 +9,7 @@ {else} {$must} - + {/if} @@ -77,7 +77,7 @@
-