From 49df65e69a4a3d9214cd0b0a3266efdf86ca07ba Mon Sep 17 00:00:00 2001 From: Calvo Date: Fri, 17 Jun 2022 15:02:57 +0200 Subject: [PATCH] Fix ACL for ncm --- pandora_console/include/functions_users.php | 46 +++++++++++---------- 1 file changed, 25 insertions(+), 21 deletions(-) diff --git a/pandora_console/include/functions_users.php b/pandora_console/include/functions_users.php index f4e6e25be8..da732c658e 100755 --- a/pandora_console/include/functions_users.php +++ b/pandora_console/include/functions_users.php @@ -235,27 +235,31 @@ function groups_combine_acl($acl_group_a, $acl_group_b) } $acl_list = [ - 'agent_view' => 1, - 'agent_edit' => 1, - 'agent_disable' => 1, - 'alert_edit' => 1, - 'alert_management' => 1, - 'pandora_management' => 1, - 'db_management' => 1, - 'user_management' => 1, - 'report_view' => 1, - 'report_edit' => 1, - 'report_management' => 1, - 'event_view' => 1, - 'event_edit' => 1, - 'event_management' => 1, - 'map_view' => 1, - 'map_edit' => 1, - 'map_management' => 1, - 'vconsole_view' => 1, - 'vconsole_edit' => 1, - 'vconsole_management' => 1, - 'tags' => 1, + 'agent_view' => 1, + 'agent_edit' => 1, + 'agent_disable' => 1, + 'alert_edit' => 1, + 'alert_management' => 1, + 'pandora_management' => 1, + 'db_management' => 1, + 'user_management' => 1, + 'report_view' => 1, + 'report_edit' => 1, + 'report_management' => 1, + 'event_view' => 1, + 'event_edit' => 1, + 'event_management' => 1, + 'map_view' => 1, + 'map_edit' => 1, + 'map_management' => 1, + 'vconsole_view' => 1, + 'vconsole_edit' => 1, + 'vconsole_management' => 1, + 'tags' => 1, + 'network_config_view' => 1, + 'network_config_edit' => 1, + 'network_config_management' => 1, + ]; foreach ($acl_group_a['tags'] as $key => $value) {