parent
68e1ba3012
commit
a95d03ec8e
@ -98,7 +98,7 @@ export class AuthManager {
|
||||
return async (ctx: Context & { auth: Auth }, next: Next) => {
|
||||
const token = ctx.getBearerToken();
|
||||
if (token && (await ctx.app.authManager.jwt.blacklist?.has(token))) {
|
||||
return ctx.throw(401, ctx.t('token is not available'));
|
||||
return ctx.throw(403, ctx.t('token is not available'));
|
||||
}
|
||||
|
||||
const name = ctx.get(this.options.authKey) || this.options.default;
|
||||
|
@ -86,7 +86,7 @@ export class UiSchemaStoragePlugin extends Plugin {
|
||||
});
|
||||
|
||||
this.app.acl.allow('uiSchemas', ['getProperties', 'getJsonSchema'], 'loggedIn');
|
||||
this.app.acl.allow('uiSchemaTemplates', ['get', 'list'], 'loggedIn');
|
||||
this.app.acl.allow('uiSchemaTemplates', ['get', 'list'], 'public');
|
||||
}
|
||||
|
||||
async load() {
|
||||
|
Loading…
Reference in New Issue
Block a user