N°1671 Portal: Fix Aggregate Brick when user profile is not allowed to see one of the sub-brick

This commit is contained in:
Eric
2020-04-06 14:07:42 +02:00
parent a3a34a94e7
commit b1d703bff3

View File

@@ -21,6 +21,7 @@
namespace Combodo\iTop\Portal\Controller;
use Combodo\iTop\Portal\Helper\ApplicationHelper;
use IssueLog;
use Silex\Application;
use Symfony\Component\HttpFoundation\Request;
@@ -81,7 +82,8 @@ class AggregatePageBrickController
$oPortalBrick = $this->GetBrickFromId($aPortalInstanceBricks, $sBrickId);
if (!isset($oPortalBrick))
{
throw new \Exception("AggregatePageBrick : non existing brick '$sBrickId'");
IssueLog::Warning('AggregatePageBrick: Could not display "'.$sBrickId.'", either wrong id or user profile not allowed');
continue;
}
$aAggregatePageBricks[] = $oPortalBrick;
}
@@ -144,4 +146,4 @@ class AggregatePageBrickController
return $aTilesRendering;
}
}
}