Code

Updated ldif export - Updated ACLs wq
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 29 Mar 2010 09:58:24 +0000 (09:58 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 29 Mar 2010 09:58:24 +0000 (09:58 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17341 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/ldapmanager/html/getxls.php

index 433aa5a987eda52410122908e067b1343de07c82..1b5f31056335b5f91293a8e29309618758ad4401 100644 (file)
@@ -480,15 +480,17 @@ if (!session::is_set('ui')){
 $ui     = session::get('ui');
 $config = session::get('config');
 
-
 /* Check ACL's */
 $dn ="";
 if(isset($_GET['n'])){
-  $dn =  base64_decode($_GET['n']);
+  $dn = base64_decode($_GET['n']);
+  $acl_dn = base64_decode($_GET['d']).base64_decode($_GET['n']);
 }elseif(isset($_GET['dn'])){
-  $dn =  base64_decode($_GET['dn']);
+  $dn = base64_decode($_GET['dn']);
+  $acl_dn = base64_decode($_GET['dn']);
 }
-$acl = $ui->get_permissions($dn,"ldapmanager/xlsexport");
+
+$acl = $ui->get_permissions($acl_dn,"ldapmanager/ldif");
 if(!preg_match("/r/",$acl)){
        msg_dialog::display(_("Permission error"),_("You have no permission to do LDAP exports!"),FATAL_ERROR_DIALOG);
   exit();