Options
All
  • Public
  • Public/Protected
  • All
Menu

Class UsersWhoCan

Hierarchy

Index

Constructors

constructor

  • new UsersWhoCan(__namedParameters: ["show" | "create" | "edit" | "replace" | "delete", string]): UsersWhoCan
  • Parameters

    • __namedParameters: ["show" | "create" | "edit" | "replace" | "delete", string]

    Returns UsersWhoCan

Properties

action_name

action_name: ActionName

params

params: any

target_collection_name

target_collection_name: string

Static type_name

type_name: string = "users-who-can"

Methods

_getRestrictingQuery

check

checkerFunction

  • checkerFunction(context: Context): Promise<null | { allowed: boolean; reason: string }>
  • Parameters

    Returns Promise<null | { allowed: boolean; reason: string }>

getPolicy

  • Parameters

    Returns Policy

getRestrictingQuery

isItemSensitive

  • isItemSensitive(): Promise<boolean>
  • Returns Promise<boolean>

Static allow

  • allow(reason: string): { allowed: boolean; reason: string }
  • Parameters

    • reason: string

    Returns { allowed: boolean; reason: string }

    • allowed: boolean
    • reason: string

Static deny

  • deny(reason: string): { allowed: boolean; reason: string }
  • Parameters

    • reason: string

    Returns { allowed: boolean; reason: string }

    • allowed: boolean
    • reason: string

Static fromDefinition

Generated using TypeDoc