Fix authorizer not defined

This commit is contained in:
KernelDeimos committed 2024-04-19 17:12:15 -04:00
1 parent 8cf58d7fc6
commit 0e9e8d41d9
1 file changed
+1 -1
@@ -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(