CMS / foldkit-cms-drizzle
How visitor visibility reaches every query
A table can be read four ways: by id, as children of a relation, as the target
of a reference, and through a query. Guarding only one endpoint leaves the other
three open. Instead, the audience boundary is attached as a
visible rule on
the Drizzle table binding itself, so every read path applies it automatically.
An author's principal sees entries, drafts, revisions, and every content row. A
visitor's principal sees only published content rows. Pass transitions to
CmsServer.make (for example, { publish: [isEditor], schedule: [isEditor],
unpublish: [isEditor] }) to restrict who may publish or unpublish.