From bff850c02d6635402cddc721c59ce429a6440efa Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 3 Jul 2008 09:58:53 +0000 Subject: [PATCH] Updated divlist system. -Only list create action for objects which plugins are installed. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11520 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../systems/admin/systems/class_divListSystem.inc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gosa-plugins/systems/admin/systems/class_divListSystem.inc b/gosa-plugins/systems/admin/systems/class_divListSystem.inc index 653a4924c..89838f7ff 100644 --- a/gosa-plugins/systems/admin/systems/class_divListSystem.inc +++ b/gosa-plugins/systems/admin/systems/class_divListSystem.inc @@ -160,27 +160,27 @@ class divListSystem extends MultiSelectWindow $s.= "..|". " "._("Create")."|\n"; - if(preg_match("/c/",$ui->get_permissions($this->selectedBase,"terminal/termgeneric"))){ + if(class_available("termtabs") && preg_match("/c/",$ui->get_permissions($this->selectedBase,"terminal/termgeneric"))){ $s.= "...|". " "._("Terminal")."|"."newsystem_terminal|\n"; } - if(preg_match("/c/",$ui->get_permissions($this->selectedBase,"workstation/workgeneric"))){ + if(class_available("worktabs") && preg_match("/c/",$ui->get_permissions($this->selectedBase,"workstation/workgeneric"))){ $s.= "...|". " "._("Workstation")."|"."newsystem_workstation|\n"; } - if(preg_match("/c/",$ui->get_permissions($this->selectedBase,"workstation/servgeneric"))){ + if(class_available("servtabs") && preg_match("/c/",$ui->get_permissions($this->selectedBase,"workstation/servgeneric"))){ $s.= "...|". " "._("Server")."|"."newsystem_server|\n"; } - if(preg_match("/c/",$ui->get_permissions($this->selectedBase,"phone/phoneGeneric"))){ + if(class_available("phonetabs") && preg_match("/c/",$ui->get_permissions($this->selectedBase,"phone/phoneGeneric"))){ $s.= "...|". " "._("Phone")."|"."newsystem_phone|\n"; } - if(preg_match("/c/",$ui->get_permissions($this->selectedBase,"printer/printgeneric"))){ + if(class_available("printtabs") && preg_match("/c/",$ui->get_permissions($this->selectedBase,"printer/printgeneric"))){ $s.= "...|". " "._("Printer")."|"."newsystem_printer|\n"; } - if(preg_match("/c/",$ui->get_permissions($this->selectedBase,"component/componentGeneric"))){ + if(class_available("componenttabs") && preg_match("/c/",$ui->get_permissions($this->selectedBase,"component/componentGeneric"))){ $s.= "...|". " "._("Component")."|"."newsystem_component|\n"; } -- 2.30.2