@penguinharness/multimodal-tools · plugins/multimodal-tools/src/host.ts:69

ProjectAccess

interface

No JSDoc comment in source yet.

API

@Interface()
export abstract class ProjectAccess {
  abstract requireProjectAccess(userId: string, projectId: string): void;
  abstract requireProjectOwner(userId: string, projectId: string): void;
}

Contract Topology

Static AST wiring across @Module / @Provide / @Use
@Useconsumed by (1)

Members (2)

requireProjectAccess

requireProjectAccess(userId: string, projectId: string): void

Throws the host's 404 unless the user can see the Project.

@paramuserIdstring
@paramprojectIdstring
@returnsvoid

requireProjectOwner

requireProjectOwner(userId: string, projectId: string): void

Throws the host's 403 unless the user owns the Project.

@paramuserIdstring
@paramprojectIdstring
@returnsvoid