#11300 fixed node access token in users not admin, meta

This commit is contained in:
Daniel Cebrian 2023-05-22 15:01:04 +02:00
parent 451bc20330
commit 761feed0dd
1 changed files with 5 additions and 1 deletions

View File

@ -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);