Code

Just display inherit button if we currently not editing an ogroup.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 11 Jul 2007 13:12:42 +0000 (13:12 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 11 Jul 2007 13:12:42 +0000 (13:12 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6836 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_workstationService.inc

index 84c3b42c7df79addf3f6d9ec5df98515da27660d..f41b4195e54fc4420865a319327e59871d90e7b3 100644 (file)
@@ -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",