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.
{
member: { actions: ['me.*'], scoping: 'personal' },
patron: { extends: ['member'] },
usher: ['door.*'],
}{ member: 'personal', patron: null, usher: null }Runs in this page on the installed package. The input and the expected output are defined by the example.