Browse Source

fix(nocodb): 403 forbidden message

pull/7285/head
աɨռɢӄաօռɢ 11 months ago
parent
commit
193f119b6b
  1. 2
      packages/nocodb/src/middlewares/extract-ids/extract-ids.middleware.ts

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

@ -222,7 +222,7 @@ export class AclMiddleware implements NestInterceptor {
: getUserRoleForScope(req.user, scope); : getUserRoleForScope(req.user, scope);
if (!userScopeRole) { if (!userScopeRole) {
NcError.forbidden('Unauthorized access'); NcError.forbidden("You don't have permission to access this resource");
} }
// assign owner role to super admin for all bases // assign owner role to super admin for all bases

Loading…
Cancel
Save