mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 23:32:17 +02:00
(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:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user