Fix authorizer not defined

This commit is contained in:
KernelDeimos 2024-04-19 17:12:08 -04:00
parent 8cf58d7fc6
commit 0e9e8d41d9

View File

@ -207,7 +207,7 @@ class PermissionService extends BaseService {
if ( actor.type instanceof AccessTokenActorType ) {
// Authorizer must have permission
const authorizer_permission = await this.check(authorizer, permission);
const authorizer_permission = await this.check(actor.type.authorizer, permission);
if ( ! authorizer_permission ) return false;
return await this.check_access_token_permission(