mirror of
https://github.com/HeyPuter/puter.git
synced 2025-01-23 14:20:22 +08:00
Fix authorizer not defined
This commit is contained in:
parent
8cf58d7fc6
commit
0e9e8d41d9
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user