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) {