directus-monorepo ( Readme | API )
directus-monorepo > AuthorizationService
new AuthorizationService(
options
):AuthorizationService
Parameter | Type |
---|---|
options |
AbstractServiceOptions |
api/src/services/authorization.ts:37
accountability:
any
api/src/services/authorization.ts:33
knex:
Knex
<any
,any
[] >
api/src/services/authorization.ts:32
payloadService:
PayloadService
api/src/services/authorization.ts:34
schema:
SchemaOverview
api/src/services/authorization.ts:35
checkAccess(
action
,collection
,pk
):Promise
<void
>
Parameter | Type |
---|---|
action |
PermissionsAction |
collection |
string |
pk |
PrimaryKey | PrimaryKey [] |
Promise
< void
>
api/src/services/authorization.ts:592
processAST(
ast
,action
='read'
):Promise
<AST
>
Parameter | Type | Default value |
---|---|---|
ast |
AST |
undefined |
action |
PermissionsAction |
'read' |
Promise
< AST
>
api/src/services/authorization.ts:48
validatePayload(
action
,collection
,data
):Partial
<Item
>
Checks if the provided payload matches the configured permissions, and adds the presets to the payload.
Parameter | Type |
---|---|
action |
PermissionsAction |
collection |
string |
data |
Partial < Item > |
Partial
< Item
>
api/src/services/authorization.ts:481
Generated using TypeDoc and typedoc-plugin-markdown