Code

Only display readable variables
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 18 Oct 2006 04:59:43 +0000 (04:59 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 18 Oct 2006 04:59:43 +0000 (04:59 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4891 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/fai/class_faiVariable.inc

index c22d8389845a668e66d2202078a5e0ab64d8f617..12f21d978da0f4794bcc24ea28aeb8ae917ad3e6 100644 (file)
@@ -206,7 +206,20 @@ class faiVariable extends plugin
       return($display);
     }
 
-    $smarty->assign("SubObjects",$this->getList());
+    $ui = get_userinfo();
+    $ret = $this->getList();
+    $tmp = array();
+    foreach($this->SubObjects as $key => $obj){
+      
+      $acl = $ui->get_permissions($obj['dn'],"fai/faiVariableEntry");
+     
+      if(preg_match("/r/",$acl)){
+        $tmp[$key] = $ret[$key];
+      } 
+      
+      $smarty->assign("SubObjects",$tmp);
+    }
+
 
       /* Magic quotes GPC, escapes every ' " \, to solve some security risks
      * If we post the escaped strings they will be escaped again