From 761feed0dd90b95841d88d53ac531f21de5c685e Mon Sep 17 00:00:00 2001 From: Daniel Cebrian Date: Mon, 22 May 2023 15:01:04 +0200 Subject: [PATCH] #11300 fixed node access token in users not admin, meta --- pandora_console/godmode/users/configure_user.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pandora_console/godmode/users/configure_user.php b/pandora_console/godmode/users/configure_user.php index 3dc1db9b78..912cc05f43 100644 --- a/pandora_console/godmode/users/configure_user.php +++ b/pandora_console/godmode/users/configure_user.php @@ -634,7 +634,11 @@ if ($update_user) { if (enterprise_installed() === true && is_metaconsole() === true) { $values['metaconsole_access'] = get_parameter('metaconsole_access'); $values['metaconsole_agents_manager'] = get_parameter('metaconsole_agents_manager', '0'); - $values['metaconsole_access_node'] = get_parameter('metaconsole_access_node', '0'); + if (users_is_admin() === true) { + $values['metaconsole_access_node'] = get_parameter('metaconsole_access_node', '0'); + } else { + $values['metaconsole_access_node'] = db_get_value('metaconsole_access_node', 'tusuario', 'id_user', $id); + } } $values['not_login'] = (bool) get_parameter('not_login', false);