From: hickert Date: Mon, 21 May 2007 12:04:44 +0000 (+0000) Subject: Fixed xls export X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=efb91e6bcd9c9b721bc3918bcef713ba4802edde;p=gosa.git Fixed xls export git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6422 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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)));