Charter · Role syntax

Id list (shorthand)

The shorthand form of a role: an array of ids or patterns. It selects the ids that match and no others, in the actions section only. In the example guest resolves to welcome and programme.

Charter
{ guest: ['welcome', 'programme'] }
Action ids
[
  'welcome',
  'programme',
  'seats',
  'me.tickets',
  'me.pass',
  'door.list',
  'members',
  'takings',
  'settings',
]
Resolved ids
['welcome', 'programme']
Output matches the expected value

Runs in this page on the installed package. The input and the expected output are defined by the example.