From: hickert Date: Tue, 28 Nov 2006 12:19:33 +0000 (+0000) Subject: Only show allowed bases X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3c43fb2218861196f77ab9074c54cbe369d8b3a9;p=gosa.git Only show allowed bases git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5236 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_terminalGeneric.inc b/plugins/admin/systems/class_terminalGeneric.inc index a2780325d..8771847a0 100644 --- a/plugins/admin/systems/class_terminalGeneric.inc +++ b/plugins/admin/systems/class_terminalGeneric.inc @@ -216,7 +216,7 @@ class termgeneric extends plugin foreach($_POST as $name => $value){ if(preg_match("/^chooseBase/",$name) && $once && $this->acl_is_moveable()){ $once = false; - $this->dialog = new baseSelectDialog($this->config,$this); + $this->dialog = new baseSelectDialog($this->config,$this,$this->get_allowed_bases()); $this->dialog->setCurrentBase($this->base); } } @@ -266,7 +266,7 @@ class termgeneric extends plugin $smarty->assign("cn", $this->cn); $smarty->assign("staticAddress", ""); - $smarty->assign("bases", $this->config->idepartments); + $smarty->assign("bases", $this->get_allowed_bases()); /* tell smarty the inherit checkbox state */ $smarty->assign("inheritTimeServer",$this->inheritTimeServer);