AdminAccessConfig
Properties
authorize?
optionalauthorize?: (args) =>boolean|Promise<boolean>
Completely replaces the standard RBAC decision for this model.
Parameters
args
Returns
boolean | Promise<boolean>
isOwned?
optionalisOwned?: (args) =>boolean|Promise<boolean>
Determines whether the current user owns an instance for writeOwned access.
Parameters
args
instance
unknown
user
Returns
boolean | Promise<boolean>
resource?
optionalresource?:string
RBAC resource for the standard read/write/writeOwned controls. Defaults to
admin<ModelName> when that statement exists, then the legacy camel-cased model name.