From 92d39562a16bcd95705db80c66c139baad1b81da Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 30 Sep 2009 13:31:19 +0000 Subject: [PATCH] only show remove button while we are allowed to remove licenses git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14415 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../opsi/admin/opsiLicenses/class_divListLicenses.inc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gosa-plugins/opsi/admin/opsiLicenses/class_divListLicenses.inc b/gosa-plugins/opsi/admin/opsiLicenses/class_divListLicenses.inc index 7b32f3c4c..b2b2864ab 100644 --- a/gosa-plugins/opsi/admin/opsiLicenses/class_divListLicenses.inc +++ b/gosa-plugins/opsi/admin/opsiLicenses/class_divListLicenses.inc @@ -105,9 +105,12 @@ class divListLicense extends MultiSelectWindow /* Multiple options */ $s.= "..|---|\n"; - $s.= "..|". - " "._("Remove")."|"."remove_multiple_licenses|\n"; + if(preg_match("/d/",$acls)) { + $s.= "..|". + " "._("Remove")."|"."remove_multiple_licenses|\n"; + } + $this->SetDropDownHeaderMenu($s); $this->SetListHeader($listhead); } -- 2.30.2