From efb91e6bcd9c9b721bc3918bcef713ba4802edde Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 21 May 2007 12:04:44 +0000 Subject: [PATCH] Fixed xls export git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6422 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/addons/ldapmanager/class_exportxls.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/addons/ldapmanager/class_exportxls.inc b/plugins/addons/ldapmanager/class_exportxls.inc index 6a3302a81..a8e1ee685 100644 --- a/plugins/addons/ldapmanager/class_exportxls.inc +++ b/plugins/addons/ldapmanager/class_exportxls.inc @@ -33,9 +33,10 @@ class xlsexport extends plugin @log::log("view","all/".get_class($this),$this->dn); } + $dn = $this->config->current['BASE']; + /* Set government mode */ $smarty= get_smarty(); - $smarty->assign("type",FALSE); $smarty->assign("depselectivbb",""); @@ -105,7 +106,7 @@ class xlsexport extends plugin $acls = $this->ui->get_permissions($dn,"all/all"); } - if(!preg_match("/r/",$acls)){ + if(!preg_match("/r/",$acls) && (isset($_POST['sfrmgetsingle']) || isset($_POST['sfrmgetfull']) || isset($_POST['sfrmgetivbb']))){ /* Show error msg */ print_red(sprintf(_("You are not allowed to export the given ldap entry (%s)"),@LDAP::fix($dn))); -- 2.30.2