Export (legacy): bulk read must be authorized for all the queried classes

SVN:trunk[3702]
This commit is contained in:
Romain Quetiez
2015-08-27 13:20:42 +00:00
parent 16b68ee154
commit e2207dc74c

View File

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