N°969 Portal: ManageBrick tabs could show objects that were not supposed to be shown due to a bad OQL interpretation.

SVN:trunk[4851]
This commit is contained in:
Guillaume Lajarige
2017-08-01 14:14:32 +00:00
parent 3420db26a5
commit 24430e630f

View File

@@ -173,7 +173,7 @@ class ManageBrickController extends BrickController
{
foreach ($aGroupingTabs['groups'] as $aGroup)
{
$oConditionQuery = DBSearch::FromOQL($aGroup['condition']);
$oConditionQuery = $oQuery->Intersect( DBSearch::FromOQL($aGroup['condition']) );
// - Restricting query to scope
$oScopeQuery = $oApp['scope_validator']->GetScopeFilterForProfiles(UserRights::ListProfiles(), $oConditionQuery->GetClass(), UR_ACTION_READ);
if ($oScopeQuery !== null)