Skip to content

Commit 8ad7ab7

Browse files
luizhf42gustavosbarreto
authored andcommitted
fix(api): return correct admin value in user info GET request
1 parent 99f4cf7 commit 8ad7ab7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

api/services/auth.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,7 @@ func (s *service) CreateUserToken(ctx context.Context, req *requests.CreateUserT
455455
Role: role,
456456
Token: token,
457457
MaxNamespaces: user.MaxNamespaces,
458+
Admin: user.Admin,
458459
}, nil
459460
}
460461

0 commit comments

Comments
 (0)