From a3345755f746852beda8b518ff67d7484440b662 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 18 Sep 2009 08:47:04 +0000 Subject: [PATCH] Only search for opsi hosts the ldap root is selected. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14293 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../systems/admin/systems/class_systemManagement.inc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gosa-plugins/systems/admin/systems/class_systemManagement.inc b/gosa-plugins/systems/admin/systems/class_systemManagement.inc index df39a9c3c..d728aa4eb 100644 --- a/gosa-plugins/systems/admin/systems/class_systemManagement.inc +++ b/gosa-plugins/systems/admin/systems/class_systemManagement.inc @@ -1300,9 +1300,12 @@ class systems extends plugin $res = array_merge($res,get_list($filter,$sys_categories, get_ou('systemIncomingRDN').$base,$sys_attrs, GL_SIZELIMIT)); /* Append opsi systems, the opsi extension have to installed. - (Only, if we are allowed to view opsi hosts) + (Only, if we are allowed to view opsi hosts and if we're on the ldap root) */ - if($this->opsi instanceof opsi && $this->opsi->enabled() && $this->DivListSystem->ShowOpsiHosts){ + if($this->DivListSystem->selectedBase == $this->config->current['BASE'] && + $this->opsi instanceof opsi && + $this->opsi->enabled() && + $this->DivListSystem->ShowOpsiHosts){ $o_acl = $this->ui->get_permissions($base,"opsi/opsiGeneric",""); if(preg_match("/r/",$o_acl)){ $opsi_clients = $this->opsi->get_hosts_for_system_management(); -- 2.30.2