PermissionAnswer.
The typed answer of the permission check before any action, which the acting function takes as an argument
Figure 1PermissionAnswerspecified
- kind
- value
- scope
- none
- key
- none
- store
- none
- family
- people
Fields#
| field | type | required | note |
|---|---|---|---|
allowed | bool | yes | |
mode | one of read only | propose | act | full autonomy | no | |
failed_test | one of 1 | 2 | 3 | 4 | 5 | no | |
refusal | Refusal | no | |
grant | id | no | the narrowest grant that covers it |
limits_left | GrantLimits | no |
Routes that use it#
No route takes or returns PermissionAnswer directly. The record holds it, and the objects that point at it reach it.