diff --git a/plugins/admin/applications/class_divListApplication.inc b/plugins/admin/applications/class_divListApplication.inc
index 834b097e9f9b964122e248ab3e6186b5e9d89734..4676a4bb7ac129d4558fd42745548a8292ddfdf1 100755 (executable)
foreach($list as $key => $val){
+ $acl= get_permissions ($val['dn'], $this->ui->subtreeACL);
+ $acl= get_module_permission($acl, "application", $val['dn']);
+
/* Get state */
$state = "";
if(isset($val['FAIstate'])){
/* Create action icons */
$actions = "";
- if(($this->parent->CopyPasteHandler) && (!$is_freezed)){
- $actions.= "<input class='center' type='image'
- src='images/editcut.png' alt='"._("cut")."' name='cut_%KEY%' title='"._("Cut this entry")."'> ";
+
+ if($acl == "#all#"){
+ if(($this->parent->CopyPasteHandler) && (!$is_freezed)){
+ $actions.= "<input class='center' type='image'
+ src='images/editcut.png' alt='"._("cut")."' name='cut_%KEY%' title='"._("Cut this entry")."'> ";
+ }
+ if($this->parent->CopyPasteHandler){
+ $actions.= "<input class='center' type='image'
+ src='images/editcopy.png' alt='"._("copy")."' name='copy_%KEY%' title='"._("Copy this entry")."'> ";
+ }
}
- $actions.= "<input class='center' type='image'
- src='images/editcopy.png' alt='"._("copy")."' name='copy_%KEY%' title='"._("Copy this entry")."'> ";
$actions.= "<input class='center' type='image'
src='images/edit.png' alt='"._("edit")."' name='appl_edit_%KEY%' title='"._("Edit this entry")."'>";
if($is_freezed){
$actions.= "<img src='images/empty.png' width='16' alt=' ' class='center'>";
}else{
- $actions.= "<input class='center' type='image'
- src='images/edittrash.png' alt='"._("delete")."' name='appl_del_%KEY%' title='"._("Delete this entry")."'>";
+
+ if(chkacl($acl,"delete") == ""){
+ $actions.= "<input class='center' type='image'
+ src='images/edittrash.png' alt='"._("delete")."' name='appl_del_%KEY%' title='"._("Delete this entry")."'>";
+ }
}