#13035 fixed bug user not admin

This commit is contained in:
Daniel Cebrian 2024-04-19 11:04:49 +02:00
parent 6e2e0c231a
commit d4f7393d17
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ if ($list_user_tokens === true) {
if ($get_jwt_for_login === true) {
global $config;
if (is_metaconsole() === true
&& (users_is_admin($config['id_user']) === true || can_user_access_node() === true)
&& ((bool) users_is_admin($config['id_user']) === true || (bool) can_user_access_node() === true)
&& empty($config['JWT_signature']) === false
) {
$jwtRepository = new JWTRepository($config['JWT_signature']);