mirror of
https://github.com/HeyPuter/puter.git
synced 2026-02-22 14:38:48 -06:00
Fix authorizer not defined
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user