Charter · Role syntax

allow and deny

allow selects ids and deny removes ids from that selection. Within one role deny takes precedence, regardless of the order the two are written in.

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

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