mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 02:28:44 +02:00
Export (legacy): bulk read must be authorized for all the queried classes
SVN:trunk[3702]
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user