Code

Updated sortable listing.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 26 Oct 2010 12:17:59 +0000 (12:17 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 26 Oct 2010 12:17:59 +0000 (12:17 +0000)
-fixed permission problems, thanks to 'bcooksley'.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@20161 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_sortableListing.inc

index 7556c8c1802e6e914fc4fa8a68c759e67d7c100a..8269c9da95f048181c903be7de7c11d2e3d73a60 100644 (file)
@@ -225,7 +225,7 @@ class sortableListing {
       } else {
           $edit_image= $this->editable?"<input class='center' type='image' src='images/lists/edit.png' alt='"._("Edit")."' name='%ID' id='%ID'  title='"._("Edit this entry")."'>":"";
       }
-      if (strpos($this->acl, 'd') === false) {
+      if (strpos($this->acl, 'w') === false) {
           $delete_image= $this->deleteable?"<img class='center' src='images/lists/trash-grey.png' alt='"._("Delete")."'>":"";
       } else {
           $delete_image= $this->deleteable?"<input class='center' type='image' src='images/lists/trash.png' alt='"._("Delete")."' name='%ID'    title='"._("Delete this entry")."'>":"";