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
Profile picker shows add/manage affordances that can only 403 for non-admin accounts #219
The server only authorizes profile management for callers whose active
profile is the household primary, or whose account role is admin
(silo-server internal/api/handlers/profiles.go — create is primary-or-admin,
edit additionally allows self). At the "Who's watching?" picker no profile is
selected yet, so for every non-admin account the picker's affordances can only
fail:
Phone: ProfileSelectionScreen.kt appends AddProfileCard unconditionally
(~line 249) and shows "Manage Profiles" to everyone (~205-212).
TV: TvProfileSelectionScreen.kt renders TvAddProfileCard as the extra
grid cell (~385-390).
The create form submits POST /api/v1/profiles with no acting profile;
a non-admin user fills in the whole form and then sees the server's raw
message ("Profile management requires the primary profile or admin access")
as an inline error (CreateProfileViewModel.kt ~140-148, same on TV).
The web client shows no add button on its picker; silo-apple gates its picker
add flow behind the primary profile's PIN (borrowing primary context). Android
has neither — the button is simply broken for non-admin accounts.
Proposed change
Hide the add-profile card and the manage-profiles affordance on both pickers
unless the account role is admin (the only case the server accepts with no
active profile), keeping the first-profile bootstrap path working. Household
parents still manage profiles from inside the app once the primary profile is
selected. An Apple-style "borrow the primary context after PIN" flow would be
a nice parity feature later, but that's a product decision — this issue is
just about not showing a button that cannot succeed.
PR implementing the minimal gating to follow shortly.
AI Disclosure
Tool(s): Claude Code
Model(s): claude-fable-5
Involvement: AI-assisted (investigation, implementation and tests by AI;
reviewed and verified by me)
Activity