From: hickert Date: Thu, 21 Aug 2008 11:12:18 +0000 (+0000) Subject: Allo opsi host creation. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d44de821ffdc425214d23d9500ad027a77084f37;p=gosa.git Allo opsi host creation. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12259 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/systems/admin/systems/class_divListSystem.inc b/gosa-plugins/systems/admin/systems/class_divListSystem.inc index 54529f658..6c8d73372 100644 --- a/gosa-plugins/systems/admin/systems/class_divListSystem.inc +++ b/gosa-plugins/systems/admin/systems/class_divListSystem.inc @@ -199,6 +199,10 @@ class divListSystem extends MultiSelectWindow $s.= "...|". " "._("Component")."|"."newsystem_component|\n"; } + if(class_available("opsigeneric") && preg_match("/c/",$ui->get_permissions($this->selectedBase,"opsi/opsigeneric"))){ + $s.= "...|". + " "._("Opsi")."|"."newsystem_opsi_client|\n"; + } if($this->parent->si_active){ $events = DaemonEvent::get_event_types(SYSTEM_EVENT); diff --git a/gosa-plugins/systems/admin/systems/class_systemManagement.inc b/gosa-plugins/systems/admin/systems/class_systemManagement.inc index 437247275..a271bdedf 100644 --- a/gosa-plugins/systems/admin/systems/class_systemManagement.inc +++ b/gosa-plugins/systems/admin/systems/class_systemManagement.inc @@ -447,7 +447,7 @@ class systems extends plugin $this->dn= "new"; $tabs = $this->get_tab_defs(); - + if(isset($tabs[$sw])){ $class = $tabs[$sw]["CLASS"]; $tabname = $tabs[$sw]["TABNAME"]; @@ -474,7 +474,6 @@ class systems extends plugin } } - /******************** System activation ********************/ @@ -1669,10 +1668,10 @@ class systems extends plugin if($this->opsi != NULL){ $tabs["opsi_client"] = array( "CLASS" => "OPSITABS", - "TABNAME" => "opsi_generic" , + "TABNAME" => "opsigeneric" , "TABCLASS"=> "opsi_tabs", "ACLC" => "opsi" , - "ACL" => "opsi/opsi_generic"); + "ACL" => "opsi/opsigeneric"); } return($tabs);