From: hickert Date: Mon, 29 Mar 2010 09:58:24 +0000 (+0000) Subject: Updated ldif export - Updated ACLs wq X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a34522e347ae92439597bf960b98a596af189dee;p=gosa.git Updated ldif export - Updated ACLs wq git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17341 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/ldapmanager/html/getxls.php b/gosa-plugins/ldapmanager/html/getxls.php index 433aa5a98..1b5f31056 100644 --- a/gosa-plugins/ldapmanager/html/getxls.php +++ b/gosa-plugins/ldapmanager/html/getxls.php @@ -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();