mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-22 10:08:45 +02:00
N°969 Portal: ManageBrick tabs could show objects that were not supposed to be shown due to a bad OQL interpretation.
SVN:trunk[4851]
This commit is contained in:
@@ -173,7 +173,7 @@ class ManageBrickController extends BrickController
|
||||
{
|
||||
foreach ($aGroupingTabs['groups'] as $aGroup)
|
||||
{
|
||||
$oConditionQuery = DBSearch::FromOQL($aGroup['condition']);
|
||||
$oConditionQuery = $oQuery->Intersect( DBSearch::FromOQL($aGroup['condition']) );
|
||||
// - Restricting query to scope
|
||||
$oScopeQuery = $oApp['scope_validator']->GetScopeFilterForProfiles(UserRights::ListProfiles(), $oConditionQuery->GetClass(), UR_ACTION_READ);
|
||||
if ($oScopeQuery !== null)
|
||||
|
||||
Reference in New Issue
Block a user