From: hickert Date: Mon, 21 Jul 2008 11:57:23 +0000 (+0000) Subject: Updated system management X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6f356891af53adb6d2ff043fcd573b0ca563098c;p=gosa.git 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 --- 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)){