Class Grant<Sub, Act, Obj>
Type Parameters
- Sub = string
- Act = string
- Obj = string
Constructors
constructor
- new Grant<Sub, Act, Obj>(policies?, options?): Grant<Sub, Act, Obj>
Type Parameters
- Sub = string
- Act = string
- Obj = string
Properties
Protected
Readonly
options
Accessors
policies
- get policies(): Policy<Sub, Act, Obj>[]
- set policies(policies): void
Returns void
Methods
delete
- delete(policy): boolean
Returns boolean
exists
- exists(policy): boolean
Returns boolean
field
- field<Data>(data, cKey?): Promise<Data>
Returns Promise<Data>
filter
- filter<Data>(data, cKey?): Promise<Data>
Returns Promise<Data>
has
- has(cKey): boolean
Returns boolean
location
- location(ip, cKey?): boolean
Returns boolean
Protected
notations
- notations(policies, data, type, cKey?): Promise<string[][]>
Returns Promise<string[][]>
scopes
- scopes<S>(prop, cKey?): S[]
Returns S[]
subjects
- subjects(cKey?): Sub[]
Returns Sub[]
time
- time(options?, cKey?): boolean
Returns boolean
update
- update(policy): void
Returns void