mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-18 06:48:50 +02:00
N°1671 Portal: Fix Aggregate Brick when user profile is not allowed to see one of the sub-brick
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user