Options
All
  • Public
  • Public/Protected
  • All
Menu

Class gSameAsForResourceInField

Hierarchy

  • Policy
    • gSameAsForResourceInField

Index

Constructors

constructor

  • new gSameAsForResourceInField(__namedParameters: { action_name: "show" | "create" | "edit" | "replace" | "delete"; collection_name: string; field: string }): gSameAsForResourceInField
  • Parameters

    • __namedParameters: { action_name: "show" | "create" | "edit" | "replace" | "delete"; collection_name: string; field: string }
      • action_name: "show" | "create" | "edit" | "replace" | "delete"
      • collection_name: string
      • field: string

    Returns gSameAsForResourceInField

Properties

current_collection

current_collection: string

field

field: string

item_sensitive

item_sensitive: true

params

params: any

Static type_name

type_name: string = "same-as-for-resource-in-field"

Methods

_getRestrictingQuery

check

checkerFunction

getCollection

  • Parameters

    Returns Collection

getReferencedCollection

  • Parameters

    Returns Collection

getReferencedPolicy

  • Parameters

    Returns Policy

getRestrictingQuery

isItemSensitive

  • isItemSensitive(): 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