Scale Intelligence■ Docs
Docs / The model / PermissionAnswer

PermissionAnswer.

The typed answer of the permission check before any action, which the acting function takes as an argument

Figure 1PermissionAnswerspecified
PERMISSIONANSWERvalue at none scopeallowedboolmodeenum:read only|propose|act|full au…optionalfailed_testenum:1|2|3|4|5optionalrefusalRefusaloptionalthe narrowest grant that covers itgrantidoptionallimits_leftGrantLimitsoptionalREFUSALthrough refusalGRANTLIMITSthrough limits_left
PermissionAnswer is a value at none scope. The drawing shows its fields and the objects that they point at.
kind
value
scope
none
key
none
store
none
family
people

Fields#

fieldtyperequirednote
allowedboolyes
modeone of read only | propose | act | full autonomyno
failed_testone of 1 | 2 | 3 | 4 | 5no
refusalRefusalno
grantidnothe narrowest grant that covers it
limits_leftGrantLimitsno

Routes that use it#

No route takes or returns PermissionAnswer directly. The record holds it, and the objects that point at it reach it.