#11482 fixed list modules in module histogram, only meta

This commit is contained in:
Daniel Cebrian 2023-06-06 15:06:15 +02:00
parent eb2d974670
commit 7fa2f77729
1 changed files with 1 additions and 1 deletions

View File

@ -351,7 +351,7 @@ class GraphModuleHistogramWidget extends Widget
'agent_id' => $values['agentId'],
'metaconsole_id' => $values['metaconsoleId'],
'style' => 'width: inherit;',
'filter_modules' => (users_access_to_agent($values['agentId']) === false) ? [$values['moduleId']] : [],
'filter_modules' => (users_access_to_agent($values['agentId'], 'AR', false, is_metaconsole()) === false) ? [$values['moduleId']] : [],
'nothing' => __('None'),
'nothing_value' => 0,
],