Charter · API

resolveScoping

Returns the scoping name declared on one role, if it declares one. The name is interpreted by whatever enforces it: Vex reads it as which rows a read may return. scoping is not inherited through extends: in the example patron extends member and has no scoping.

Charter
{
  member: { actions: ['me.*'], scoping: 'personal' },
  patron: { extends: ['member'] },
  usher: ['door.*'],
}
Scoping by role
{ member: 'personal', patron: null, usher: null }
Output matches the expected value

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