Skip to content

docs: audit-settings page claims a role gate (owners/admins edit, others read-only) that the routes do not enforce #353

Closed

Description

@nc9

docs/dashboard/audit-settings.mdx says "Owners and admins can edit; other members see a read-only view". Neither the audit-settings nor the crawl-settings API route has a role gate today, only website access. Either the docs drop the claim or the product adds the gate (file on the private repo if the latter). Found while writing docs/dashboard/crawl-settings.mdx (pub #351), which deliberately does not repeat the claim.

https://claude.ai/code/session_0174D96WamG9ZhJxRudpeniA

Acceptance Criteria

  • docs/dashboard/audit-settings.mdx no longer states that only owners and admins can edit audit settings, unless the product enforces that role gate by the time the docs change ships
  • If the role gate is chosen instead, the decision is recorded in a comment here and the docs statement matches the enforced behaviour for both audit settings and crawl settings
  • make validate in docs/ passes

Activity

  1. added
    documentation
    P3
    size: XS
    on Sep 23, 2026
  2. nc9 commented on Oct 11, 2026

    @nc9
    ContributorAuthor

    Checked against current main (ad95fb2): STILL TRUE. docs/dashboard/audit-settings.mdx:9 still says "Owners and admins can edit; other members see a read-only view."

    On the hosted side, the website settings update routes, crawl settings included, still check only that the caller is a current member of the website's org. The dashboard's audit settings page has no role check either: its save button is disabled only while the form is unchanged, invalid or saving. So any org member can edit, and the docs sentence is wrong as written.

  3. nc9 commented on Oct 16, 2026

    @nc9
    ContributorAuthor

    Fixed in #868 (51af089). The page now says anyone in the organization who can open the website can change these settings, which is what the API enforces: the settings routes check website access, not role. The second criterion does not apply, because the docs were changed rather than a role gate added. Whether to add an owner/admin gate is now a separate product decision for the maintainers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3documentationsize: XS

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions