From 6f356891af53adb6d2ff043fcd573b0ca563098c Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 21 Jul 2008 11:57:23 +0000 Subject: [PATCH] Updated system management -Do not display winstations if not allowed. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11727 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../systems/admin/systems/class_systemManagement.inc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/gosa-plugins/systems/admin/systems/class_systemManagement.inc b/gosa-plugins/systems/admin/systems/class_systemManagement.inc index 988d0b6e5..2c950a41d 100644 --- a/gosa-plugins/systems/admin/systems/class_systemManagement.inc +++ b/gosa-plugins/systems/admin/systems/class_systemManagement.inc @@ -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)){ -- 2.30.2