From 39dbf63f023a6c4c0aa724c33bacae7b813afe18 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 12 Jan 2007 04:11:51 +0000 Subject: [PATCH] Updated system list, to hide not allowed options git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5541 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_divListSystem.inc | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/plugins/admin/systems/class_divListSystem.inc b/plugins/admin/systems/class_divListSystem.inc index 9d732b212..42ce4cbce 100644 --- a/plugins/admin/systems/class_divListSystem.inc +++ b/plugins/admin/systems/class_divListSystem.inc @@ -131,14 +131,20 @@ class divListSystem extends MultiSelectWindow $img10 = "L"; $empty =" "; - $action= ""; - $action.= ""; - // User and Template Images $editlink = "%s"; // Test Every Entry and generate divlist Array foreach($terminals as $key => $val){ + + $acl= get_permissions ($val['dn'], $this->ui->subtreeACL); + $acl= get_module_permission($acl, "terminal", $val['dn']); + + $action= ""; + if(chkacl($acl,"delete") ==""){ + $action.= ""; + } + /* Generate picture list, which is currently disabled */ if(in_array("goCupsServer" ,$val['objectClass'])) $cups = $img1; else $cups =$empty; @@ -168,7 +174,7 @@ class divListSystem extends MultiSelectWindow $display= $val["cn"][0].$dsc; } - if((in_array("gotoTerminal",$val['objectClass']))||(in_array("gotoWorkstation",$val['objectClass']))){ + if(((in_array("gotoTerminal",$val['objectClass']))||(in_array("gotoWorkstation",$val['objectClass']))) && chkacl($acl,"password") == ""){ $action2 = ""; }else{ $action2 = ""; -- 2.30.2