From: hickert Date: Fri, 18 Sep 2009 08:47:04 +0000 (+0000) Subject: Only search for opsi hosts the ldap root is selected. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a3345755f746852beda8b518ff67d7484440b662;p=gosa.git 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 --- 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();