Moss · Layout variants

Variants and the catalog token

Granting a layout variant does not change a principal’s catalog or its token. A variant changes how one action is rendered: it adds no action to the catalog and removes none. Example: the manager catalog, without and with programme.takings granted.

Manager role
{
  manager: {
    extends: ['usher'],
    actions: { allow: ['*'], deny: ['welcome', 'me.*'] },
    data: ['*.read'],
    layouts: ['programme.takings'],
  },
}
Catalog without the variant
{
  ids: [
    'door.list',
    'members',
    'programme',
    'seats',
    'settings',
    'takings',
  ],
  hash: '392decf8',
}
Catalog with the variant
{
  ids: [
    'door.list',
    'members',
    'programme',
    'seats',
    'settings',
    'takings',
  ],
  hash: '392decf8',
}
Output matches the expected value

Computed when this site was built, by the installed package, which does not run in a browser. The site’s checks recompute it on every change.