Merge branch 'ent-11482-widget-de-module-histogram-en-metaconsola-no-lista-modulos-del-agente-ya-seleccionado-en' into 'develop'

Ent 11482 widget de module histogram en metaconsola no lista modulos del agente ya seleccionado en

See merge request artica/pandorafms!6048
This commit is contained in:
Rafael Ameijeiras 2023-06-19 08:20:57 +00:00
commit 2923fa867e
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,
],