From e2207dc74cc31e9d1ac9a1f5e8db6030ca0e7f41 Mon Sep 17 00:00:00 2001 From: Romain Quetiez Date: Thu, 27 Aug 2015 13:20:42 +0000 Subject: [PATCH] Export (legacy): bulk read must be authorized for all the queried classes SVN:trunk[3702] --- webservices/export.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/webservices/export.php b/webservices/export.php index fd4d1edad..3c6a721b7 100644 --- a/webservices/export.php +++ b/webservices/export.php @@ -176,6 +176,13 @@ if (!empty($sExpression)) } } $oFilter->SetInternalParams($aArgs); + foreach ($oFilter->GetSelectedClasses() as $sAlias => $sClass) + { + if ((UserRights::IsActionAllowed($sClass, UR_ACTION_BULK_READ) && UR_ALLOWED_YES) == 0) + { + throw new Exception("The current user does not have permission for exporting data of class $sClass"); + } + } if ($oFilter) {