Code

Updated system management
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 21 Jul 2008 11:57:23 +0000 (11:57 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 21 Jul 2008 11:57:23 +0000 (11:57 +0000)
-Do not display winstations if not allowed.

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11727 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/systems/admin/systems/class_systemManagement.inc

index 988d0b6e55f77396ad19784103d16a60c6af3eb3..2c950a41ddf3fce845daebc804b19f13f2ac8c3d 100644 (file)
@@ -1360,9 +1360,12 @@ class systems extends plugin
         } else {
           $domain= "";
         }
-        $terminal=$value;
-        $terminal['type']     ="W";
-        $terminal['domain']   = $name.$domain;
+        $acl = $ui->get_permissions($value['dn'],"winworkstation/wingeneric");
+        if($add != "" || preg_match("/r/",$acl)) {
+          $terminal=$value;
+          $terminal['type']     ="W";
+          $terminal['domain']   = $name.$domain;
+        }
       }
 
       if(count($terminal)){