Constructors
constructor
- new Policy(params?: any): Policy
-
Parameters
-
Default value params: any = {}
Properties
params
params: any
Static type_name
type_name: string
Methods
Protected Abstract _getRestrictingQuery
-
Parameters
Returns Promise<Query>
check
-
Parameters
Abstract checkerFunction
-
Parameters
getRestrictingQuery
-
Parameters
Returns Promise<Query>
isItemSensitive
- isItemSensitive(): Promise<boolean>
-
Returns Promise<boolean>
Static allow
- allow(reason: string): { allowed: boolean; reason: string }
-
Parameters
Returns { allowed: boolean; reason: string }
-
allowed: boolean
-
reason: string
Static deny
- deny(reason: string): { allowed: boolean; reason: string }
-
Parameters
Returns { allowed: boolean; reason: string }
-
allowed: boolean
-
reason: string
Static fromDefinition
-
Parameters