Browse Source

fix: typo correction - missing opening brace

pull/7444/head
Pranav C 11 months ago
parent
commit
24081f09f8
  1. 3
      packages/nocodb/src/middlewares/extract-ids/extract-ids.middleware.ts

3
packages/nocodb/src/middlewares/extract-ids/extract-ids.middleware.ts

@ -216,7 +216,6 @@ export class AclMiddleware implements NestInterceptor {
const req = context.switchToHttp().getRequest(); const req = context.switchToHttp().getRequest();
if (!req.user?.isAuthorized) { if (!req.user?.isAuthorized) {
NcError.unauthorized('Invalid token'); NcError.unauthorized('Invalid token');
} }
@ -226,7 +225,7 @@ export class AclMiddleware implements NestInterceptor {
? OrgUserRoles.SUPER_ADMIN ? OrgUserRoles.SUPER_ADMIN
: getUserRoleForScope(req.user, scope); : getUserRoleForScope(req.user, scope);
if (!userScopeRole) if (!userScopeRole) {
NcError.forbidden("You don't have permission to access this resource"); NcError.forbidden("You don't have permission to access this resource");
} }

Loading…
Cancel
Save