You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[bug] Web offers custom sections to non-admin profiles when saving them is disabled #989
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:
Leave sections.allow_profile_custom_sections unset or false.
Sign in as a non-admin profile and open Settings → Home screen → Add Section.
Select custom_filter, enter a title, choose Movies and an accessible movie library, and add a genre rule.
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.
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
fix(web): hide admin-only section types from profiles that cannot sav…