blob: 154a4fb8cdca1435c1418e35f6aa88ed3a529ef5 [file]
import { AuthActionVerb, AuthPossession } from '../types';
import { ExecutionContext } from '@nestjs/common';
export interface Permission {
resource: string;
action: AuthActionVerb;
possession: AuthPossession;
isOwn?: (ctx: ExecutionContext) => boolean;
}