Skip to content

[bug] Web offers custom sections to non-admin profiles when saving them is disabled #989

Closed

Description

@d3v1l1989

The web Home screen settings editor offers custom_filter to non-admin profiles even when the backend disables custom sections for them. A user reported reaching Add and getting a generic failure. The server operator confirmed that the option is visible to non-admin users.

Reproduction

Based on the affected user’s report; the investigator verified the source path but did not independently replay the browser interaction:

  1. Leave sections.allow_profile_custom_sections unset or false.
  2. Sign in as a non-admin profile and open Settings → Home screen → Add Section.
  3. Select custom_filter, enter a title, choose Movies and an accessible movie library, and add a genre rule.
  4. Click Add. The UI permits the configuration, but the backend rejects this recipe for that profile.

Expected: hide or disable restricted recipes with an explanation before the user fills out the form. If saving receives custom_disabled, show the permission explanation. Preserve access for admins and profiles allowed by the server setting.

Technical notes

Public source references at revision dc3f7fa5b955b6351fe6e0089ed78ec0edb110ac:

  • App.tsx exposes /settings/home-screen under RequireProfile, without an admin requirement.
  • HomeScreenSettings.tsx renders Add Section and passes mode="profile" to the editor without consulting /profile/sections/flags or the account role.
  • SectionEditorDrawer.tsx lists catalog recipes without filtering admin_only; its static SECTION_TYPES fallback also includes custom_filter.
  • custom.go marks the recipe AdminOnly: true.
  • HandleSaveProfileOverrides returns 403 / custom_disabled for a non-admin adding this recipe unless the setting is true, before validating the filter.

The separate ProfileCustomizeHome.tsx page already reads the flag. The editor, settings page, recipe definition, and save handler above were unchanged on upstream main 25e460ff when checked.

Affected client: Web UI. Native clients were not tested. No operational logs or private deployment details are included in this public report.

AI disclosure

  • Harness: OpenAI Codex
  • Tools: Codex agent, shell, Git, GitHub CLI
  • Model: GPT-6 (exact backend model identifier not exposed)
  • Involvement: AI-assisted source investigation and drafting; user supplied the reproduction and authorized submission
  • Independent/adversarial review: n/a — issue report, no code changes

Activity

  1. added
    bug
    triaged
    and removed
    triaged
    on Sep 20, 2026
  2. added theissue type on Sep 20, 2026
  3. removed
    bug
    on Sep 20, 2026
  4. added a commit that references this issue on Sep 28, 2026
    34f577c
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

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions