Code

Updated goto plugins to hide gosa-si actions until the gosaSupportURI is defined.
[gosa.git] / gosa-plugins / goto / admin / systems / goto / class_terminalGeneric.inc
index be20302d1747639d5b8f47f2223df716dc1aea95..3290572e46532487f266f611411e3879ba2f8f18 100644 (file)
@@ -294,6 +294,9 @@ class termgeneric extends plugin
     $smarty->assign("ntpservers",     $tmp);
     $smarty->assign("fai_activated",$this->fai_activated);
 
+    $si_url = $this->config->get_cfg_value("gosaSupportURI");
+    $smarty->assign("si_activated",!empty($si_url));
+
     /* Variables */
     foreach(array("gotoMode", "gotoTerminalPath", "gotoSwapServer","gotoSyslogServer", "gotoNtpServer") as $val){
       $smarty->assign($val."_select", $this->$val);