mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 07:12:26 +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;
|
namespace Combodo\iTop\Portal\Controller;
|
||||||
|
|
||||||
use Combodo\iTop\Portal\Helper\ApplicationHelper;
|
use Combodo\iTop\Portal\Helper\ApplicationHelper;
|
||||||
|
use IssueLog;
|
||||||
use Silex\Application;
|
use Silex\Application;
|
||||||
use Symfony\Component\HttpFoundation\Request;
|
use Symfony\Component\HttpFoundation\Request;
|
||||||
|
|
||||||
@@ -81,7 +82,8 @@ class AggregatePageBrickController
|
|||||||
$oPortalBrick = $this->GetBrickFromId($aPortalInstanceBricks, $sBrickId);
|
$oPortalBrick = $this->GetBrickFromId($aPortalInstanceBricks, $sBrickId);
|
||||||
if (!isset($oPortalBrick))
|
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;
|
$aAggregatePageBricks[] = $oPortalBrick;
|
||||||
}
|
}
|
||||||
@@ -144,4 +146,4 @@ class AggregatePageBrickController
|
|||||||
|
|
||||||
return $aTilesRendering;
|
return $aTilesRendering;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user