Closed twilson63 closed 2 months ago
ao.assignables was added in a recent release of aos and allows specifying allow-disallow rules pertaining to assignments.
ao.assignables
aos
By default, all assignments are not trusted.
If a user assigns a message to this process, then they must also add a MatchSpec to ao.assignables. Otherwise, the assignment will not be trusted.
MatchSpec
This is a disjointed two step process.
If the user uses Assign to assign a message to this process, then add the MessageId to the ao.assignables table.
Assign
MessageId
if Utils.includes(ao.id, o.Processes) then ao.addAssignable("Allow-" .. o.Message, { Id = o.Message }) end ...
Background
ao.assignables
was added in a recent release ofaos
and allows specifying allow-disallow rules pertaining to assignments.By default, all assignments are not trusted.
Problem
If a user assigns a message to this process, then they must also add a
MatchSpec
toao.assignables
. Otherwise, the assignment will not be trusted.This is a disjointed two step process.
Solution
If the user uses
Assign
to assign a message to this process, then add theMessageId
to theao.assignables
table.