From: hickert Date: Wed, 11 Jul 2007 13:12:42 +0000 (+0000) Subject: Just display inherit button if we currently not editing an ogroup. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=be4e3a47f5c4b037d5bc28a6fc34dad609cbf828;p=gosa.git Just display inherit button if we currently not editing an ogroup. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6836 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_workstationService.inc b/plugins/admin/systems/class_workstationService.inc index 84c3b42c7..f41b4195e 100644 --- a/plugins/admin/systems/class_workstationService.inc +++ b/plugins/admin/systems/class_workstationService.inc @@ -59,11 +59,12 @@ class workservice extends plugin { plugin::plugin ($config, $dn, $parent); - - $ldap = $this->config->get_ldap_link(); - $ldap->cd ($this->config->current['BASE']); - $ldap->search("(&(objectClass=gosaGroupOfNames)(member=".$this->dn."))",array("cn")); - $this->member_of_ogroup = $ldap->count() >= 1; + if(!isset($this->parent->by_object['ogroup'])){ + $ldap = $this->config->get_ldap_link(); + $ldap->cd ($this->config->current['BASE']); + $ldap->search("(&(objectClass=gosaGroupOfNames)(member=".$this->dn."))",array("cn")); + $this->member_of_ogroup = $ldap->count() >= 1; + } $this->XResolutions= array( "640x480" => "640x480",