@suluk/cockpit - v0.2.0
    Preparing search index...

    Function previewAllowedRoles

    • The roles a preview may be minted AS — the authenticated principals, EXCLUDING the login-less anonymous. This is the ONE source for the deployed gate's allow-list AND for which demo users seed.sql seeds; keeping them equal means a role can be previewed iff it is seeded iff the gate allows it (no allow-but-unseedable divergence).

      Parameters

      • doc: OpenAPIv4Document

      Returns string[]