Code

Fixed xls export
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 21 May 2007 12:04:44 +0000 (12:04 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 21 May 2007 12:04:44 +0000 (12:04 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6422 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/addons/ldapmanager/class_exportxls.inc

index 6a3302a8175cc1baab82eef13c74de52a183390c..a8e1ee68524420c57e05509d33e482e7d96cd9d1 100644 (file)
@@ -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)));