From: hickert Date: Wed, 18 Oct 2006 04:59:43 +0000 (+0000) Subject: Only display readable variables X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e0e5f97575319e9cb8c8a3db5d987c390ae7ff5f;p=gosa.git Only display readable variables git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4891 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/fai/class_faiVariable.inc b/plugins/admin/fai/class_faiVariable.inc index c22d83898..12f21d978 100644 --- a/plugins/admin/fai/class_faiVariable.inc +++ b/plugins/admin/fai/class_faiVariable.inc @@ -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