(Retrofit from trunk) N°1157 Portal: Exception raised in BrowseBrick when one of the levels had no scope.

SVN:2.4[5223]
This commit is contained in:
Guillaume Lajarige
2018-01-10 10:45:25 +00:00
parent 292735b4b2
commit 656cae3e66

View File

@@ -410,7 +410,7 @@ class BrowseBrickController extends BrickController
$oScopeSearch = $oApp['scope_validator']->GetScopeFilterForProfiles(UserRights::ListProfiles(), $oSearch->GetClass(), UR_ACTION_READ); $oScopeSearch = $oApp['scope_validator']->GetScopeFilterForProfiles(UserRights::ListProfiles(), $oSearch->GetClass(), UR_ACTION_READ);
$oSearch = ($oScopeSearch !== null) ? $oSearch->Intersect($oScopeSearch) : null; $oSearch = ($oScopeSearch !== null) ? $oSearch->Intersect($oScopeSearch) : null;
// - Allowing all data if necessary // - Allowing all data if necessary
if ($oScopeSearch->IsAllDataAllowed()) if ($oScopeSearch !== null && $oScopeSearch->IsAllDataAllowed())
{ {
$oSearch->AllowAllData(); $oSearch->AllowAllData();
} }