Code

only show remove button while we are allowed to remove licenses
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 30 Sep 2009 13:31:19 +0000 (13:31 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 30 Sep 2009 13:31:19 +0000 (13:31 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14415 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/opsi/admin/opsiLicenses/class_divListLicenses.inc

index 7b32f3c4cd1780c07fa7050d7115b958967dda21..b2b2864abbf3d21bb99c3d74a32c31fe76e1e13b 100644 (file)
@@ -105,9 +105,12 @@ class divListLicense extends MultiSelectWindow
 
     /* Multiple options */
     $s.= "..|---|\n";
-    $s.= "..|<img src='images/lists/trash.png' alt='' border='0' class='center'>".
-      "&nbsp;"._("Remove")."|"."remove_multiple_licenses|\n";
 
+    if(preg_match("/d/",$acls)) {
+      $s.= "..|<img src='images/lists/trash.png' alt='' border='0' class='center'>".
+        "&nbsp;"._("Remove")."|"."remove_multiple_licenses|\n";
+    }
+  
     $this->SetDropDownHeaderMenu($s);
     $this->SetListHeader($listhead);
   }