Scale Intelligence■ Docs
Docs / The model / ApprovalRequest

ApprovalRequest.

A request the server raises when the permission check's verdict is propose: the action, its inverse, the verdict and the reason; the turn waits for the client's answer

Figure 1ApprovalRequestspecified
APPROVALREQUESTvalue at none scopeididactiontextinversetextoptionalverdictPermissionAnswerreasontextanswerenum:allow|deny|allow-for-sessionoptionalanswered_byCalleroptionalPERMISSIONANSWERthrough verdictCALLERthrough answered_by
ApprovalRequest 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
harness

Fields#

fieldtyperequirednote
ididyes
actiontextyes
inversetextno
verdictPermissionAnsweryes
reasontextyes
answerone of allow | deny | allow-for-sessionno
answered_byCallerno

Routes that use it#

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