Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • PolicyFactory

Index

Constructors

constructor

Methods

Static apiKey

Static appId

Static appKeyMustBeEqualsTo

  • appKeyMustBeEqualsTo(key: string, value: any): Policy

Static authenticate

Static keyMustEqual

  • keyMustEqual(key: string, source: "res.locals", pointer: string): Policy

Static localsMustExist

  • localsMustExist(param: string): Policy

Static memberCanDoAction

  • memberCanDoAction(actions: string[]): Policy

Static owner

Static paramMustExist

  • paramMustExist(param: string): Policy

Static projectMember

  • projectMember(role: "reader" | "member" | "manager"): Policy

Static shopId

Static userMustBeMember

Static userRole

  • userRole(roles: string | string[], operation?: "include" | "exclude"): Policy

Generated using TypeDoc