Browse Source

fix: typo correction - missing opening brace

pull/7444/head
Pranav C 10 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();
if (!req.user?.isAuthorized) {
NcError.unauthorized('Invalid token');
}
@ -226,7 +225,7 @@ export class AclMiddleware implements NestInterceptor {
? OrgUserRoles.SUPER_ADMIN
: getUserRoleForScope(req.user, scope);
if (!userScopeRole)
if (!userScopeRole) {
NcError.forbidden("You don't have permission to access this resource");
}

Loading…
Cancel
Save