index b3e2227361dd4644e12f251d51c18fe26be3bc2f..9a9450c77c9731b6a6fe035623e8af53e795b807 100644 (file)
}
/* Create download button*/
- if($this->dn != "new"){
+ if($this->dn != "new" && $this->acl_is_readable("FAIscript")){
$smarty->assign("DownMe","<a href='getFAIscript.php?id=".base64_encode($this->dn)."'>
- <input type='button' value='"._("Download")."'>
+ <img src='images/save.png' alt='"._("Download")."' title='"._("Download")."' border=0 class='center'>
</a>");
}else{
$smarty->assign("DownMe","");
{
if((isset($_POST['SubObjectFormSubmitted'])) && ($this->FAIstate != "freeze")){
foreach($this->attributes as $attrs){
- if(isset($_POST[$attrs])){
- $this->$attrs = $_POST[$attrs];
- }else{
- $this->$attrs = "";
+ if($this->acl_is_writeable($attrs)){
+ if(isset($_POST[$attrs])){
+ $this->$attrs = $_POST[$attrs];
+ }else{
+ $this->$attrs = "";
+ }
}
}
}