diff --git a/gosa-plugins/opsi/admin/opsiLicenses/class_licenseUsage.inc b/gosa-plugins/opsi/admin/opsiLicenses/class_licenseUsage.inc
index 57cbff3d687412b958be7655b90b7b7d8d8fd675..972a7dece765dc8119ea115ac3b7c69af7baad4e 100644 (file)
// Create usage list
$list = new divSelectBox("licenseUsage");
- foreach($this->licenseUses as $license){
-
- $f1 = array("string" => $license['hostId'][0]);
- $f2 = array("string" => $license['licenseKey'][0]);
- $f3 = array("string" => $license['licensePoolId'][0]);
- $f4 = array("string" => $license['softwareLicenseId'][0],
- "attach" => "style='border-right:0px;'");
- $list->addEntry(array($f1,$f2,$f3,$f4));
+ $ui = get_userinfo();
+ $readable = $ui->get_permissions($this->config->current['BASE'], "opsi/licenseUsage","");
+ if($readable) {
+ foreach($this->licenseUses as $license){
+ $f1 = array("string" => $license['hostId'][0]);
+ $f2 = array("string" => $license['licenseKey'][0]);
+ $f3 = array("string" => $license['licensePoolId'][0]);
+ $f4 = array("string" => $license['softwareLicenseId'][0],
+ "attach" => "style='border-right:0px;'");
+ $list->addEntry(array($f1,$f2,$f3,$f4));
+ }
}
$smarty = get_smarty();
static function plInfo()
{
return (array(
- "plShortName" => _("Usage"),
+ "plShortName" => _("License usage"),
"plDescription" => _("License usage"),
"plSelfModify" => FALSE,
"plDepends" => array(),
- "plPriority" => 1,
+ "plPriority" => 11,
"plSection" => array("administration"),
"plCategory" => array("opsi"),
- "plProvidedAcls"=> array(
- "cn" => _("Name"),
- "description" => _("Description"))
- ));
+ "plProvidedAcls"=> array()));
}
}