Browse Source

fix: parse roles for user roles of apitoken as well

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/6329/head
mertmit 1 year ago
parent
commit
bd1bc32774
  1. 2
      packages/nocodb/src/strategies/authtoken.strategy/authtoken.strategy.ts

2
packages/nocodb/src/strategies/authtoken.strategy/authtoken.strategy.ts

@ -30,7 +30,7 @@ export class AuthTokenStrategy extends PassportStrategy(Strategy, 'authtoken') {
Object.assign(user, {
id: dbUser.id,
roles: dbUser.roles,
roles: extractRolesObj(dbUser.roles),
});
dbUser.is_api_token = true;

Loading…
Cancel
Save