diff --git a/src/datasources/designer-api.ts b/src/datasources/designer-api.ts index aa8d5d2..40ad8d0 100644 --- a/src/datasources/designer-api.ts +++ b/src/datasources/designer-api.ts @@ -21,10 +21,6 @@ export class DesignerAPI extends BaseSQLDataSource { } async getDesignerById(id: number): Promise { - ScopeAccess.validate(this.user).some([ - Scopes.DESIGNERS_READ, - Scopes.DESIGNERS_PUBLIC_READ, - ]); return this.loader.load(id); } @@ -49,7 +45,10 @@ export class DesignerAPI extends BaseSQLDataSource { limit: number = 5000, ids?: number[], ): Promise> { - ScopeAccess.validate(this.user).all([Scopes.DESIGNERS_READ]); + ScopeAccess.validate(this.user).some([ + Scopes.DESIGNERS_READ, + Scopes.DESIGNERS_PUBLIC_READ, + ]); return ( this.knex .select(