Browse Source

Merge pull request #7169 from nocodb/fix/7141-api-token

fix: Extract api token roles
pull/7177/head
Raju Udava 12 months ago committed by GitHub
parent
commit
6cc4a1c453
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      packages/nocodb/src/strategies/authtoken.strategy/authtoken.strategy.ts

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

@ -31,7 +31,7 @@ export class AuthTokenStrategy extends PassportStrategy(Strategy, 'authtoken') {
const dbUser: Record<string, any> = await User.getWithRoles(
apiToken.fk_user_id,
{
baseId: req['ncBaseId'],
baseId: req['ncProjectId'],
...(req['ncWorkspaceId']
? { workspaceId: req['ncWorkspaceId'] }
: {}),

Loading…
Cancel
Save