Currently the can property can only take one action string, changing it to an array will allow the definition to be more concise, and also making more sense when combinations of create, update, and delete are needed.
Case in point:
...
$actions: [
{
who : 'recipient',
of : 'foo',
can : 'create'
},
{
who : 'recipient',
of : 'foo',
can : 'update'
}
],
...
The of value of the update rule is meaningless, because it must be of the same value as create rule counterpart.
Currently the
can
property can only take one action string, changing it to an array will allow the definition to be more concise, and also making more sense when combinations ofcreate
,update
, anddelete
are needed.Case in point:
The
of
value of theupdate
rule is meaningless, because it must be of the same value ascreate
rule counterpart.