diff --git a/plugins/addons/ldapmanager/class_exportxls.inc b/plugins/addons/ldapmanager/class_exportxls.inc
index 78e77cbb7d3b352314a145a4dbfc8fba62bc7b04..8a830d1069b86c8d64f4911359a294715196f160 100644 (file)
// Set values for optionlist in form
$bases = array();
- $acl_bases = $this->ui->get_module_departments("ldapmanager");
+ $acl_bases = $this->ui->get_module_departments("all");
foreach($this->config->idepartments as $base_dn => $name){
if(in_array_ics($base_dn,$acl_bases)){
$bases[$base_dn] = $name;
$smarty->assign("deplist", $bases);
$smarty->assign("choicelist",array( get_people_ou() =>"users" ,
"ou=groups," =>"groups" ,
- "ou=computers,ou=systems," =>"computers",
+ "ou=systems," =>"computers",
"ou=servers,ou=systems," =>"servers",
"dc=addressbook," =>"addressbook"));
/* check alcs for given dn */
$acls ="";
if(isset($dn)){
- $acls = $this->ui->get_permissions($dn,"ldapmanager/xlsexport");
+ $acls = $this->ui->get_permissions($dn,"all/all");
}
if((!preg_match("/r/",$acls)) && isset($dn)){
return ($smarty->fetch (get_template_path('contentexportxls.tpl', TRUE)));
}
- /* Return plugin informations for acl handling
- #FIXME You can only read attributes within this report plugin */
- function plInfo()
- {
- return (array(
- "plShortName" => _("Export XLS"),
- "plDescription" => _("Export XLS"),
- "plSelfModify" => FALSE,
- "plDepends" => array(),
- "plPriority" => 2,
- "plSection" => array("addon"),
- "plCategory" => array("ldapmanager"),
-
- "plProvidedAcls" => array()
- ));
- }
}