summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 867c307)
raw | patch | inline | side by side (parent: 867c307)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 16 Oct 2006 04:26:51 +0000 (04:26 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 16 Oct 2006 04:26:51 +0000 (04:26 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4881 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/fai/class_faiScript.inc | patch | blob | history |
index 5516f19d5fe653dc8079e5e3d87516adab183272..73f536de1a6382ed2ebf5c03c1940b08daf624a5 100644 (file)
$acl = $this->ui->get_permissions($dn,"fai/faiScriptEntry") ;
$act = "";
+ /* Hide delete icon if this object is freezed */
if($this->FAIstate == "freeze"){
$act .= "<input type='image' src='images/edit.png' name='editscript_%s' title='"._("edit")."' alt='"._("edit")."'>";
}else{
}
}
+ /* Check acls for download icon */
$s_acl = $this->ui->get_permissions($dn,"fai/faiScriptEntry","FAIscript") ;
if(($this->SubObjects[$key]['status'] == "new") || ($this->SubObjects[$key]['dn'] == "new") || !preg_match("/r/",$s_acl)){
$down = "";
</a>";
}
- $divlist->AddEntry(array( array("string"=>$name['name']),
- array("string"=>$down , "attach" => "style='width:20px;'"),
- array("string"=>str_replace("%s",base64_encode($key),$act),
- "attach"=>"style='border-right: 0px;width:50px;text-align:right;'")));
+ /* Check if we are allowed to view this object */
+ $s_acl = $this->ui->get_permissions($dn,"fai/faiScriptEntry","cn") ;
+ if(preg_match("/r/",$s_acl)){
+ $divlist->AddEntry(array( array("string"=>$name['name']),
+ array("string"=>$down , "attach" => "style='width:20px;'"),
+ array("string"=>str_replace("%s",base64_encode($key),$act),
+ "attach"=>"style='border-right: 0px;width:50px;text-align:right;'")));
+ }
}
$smarty->assign("Entry_divlist",$divlist->DrawList());