The grid (core) ยท console.warn
config.permissions is a {type}, which is not a level, a map, a list, a callback or a policy object; every column was treated as "hidden" (permissions fail closed)
Printed by The grid (core), prefixed [lattice], since 1.0.1.
Warnings reference › permissions.shape
- Identifier
permissions.shape- Raised by
- The grid (core)
- Since
- 1.0.1
What happened
The permissions configuration could not be read as any of the shapes the model accepts. Permissions fail closed, so an unreadable policy hides every column rather than exposing them - the grid will look empty. That is deliberate: the opposite failure would leak data because of a typo.
The fix
Pass a level string, a map of column id to level, a list of levels, a (params) => level callback, or a policy object with resolve/entries/fallback.
The smallest fix
createGrid(el, { permissions: { salary: 'hidden', notes: 'read' } });
Reference
Covered in full at the API reference.