Skip to content

[bug] Accounts with no group show policies as inherited #1401

Closed

Description

@zZebrahz

What happened

In the Edit User dialog, policy fields on accounts with no access group still say they are inherited: “Inherited: Allowed”, “Inherit from group”, and so on. This includes every admin account, since admins can't join groups (#1195 AC4). There is no group to inherit from; the values are the server's fixed no-group defaults. The wording made the validator think an admin was still attached to a group.

Steps to reproduce

  1. Admin → Users, then open an admin account, or a user with No group, and click Edit.
  2. Open the Access and Limits tabs and look at fields that aren't overridden.

Expected behavior

“Inherited” is used only when the value comes from the user's access group. With no group, the field says where the value really comes from, for example “Server default: Allowed”, and the library field says “Server default (all libraries)”.

Silo version / commit

Build 807 · d4e35ba9

Deployment

Not recorded.

Clients affected

Web UI

Relevant logs

No logs available.

Technical notes

Source at d4e35ba9:

  • web/src/components/UserPolicyFields.tsx builds every hint with inheritHint(), which gives “Inherited: …” or “Inherited from group”. The library selector uses the label “Inherit from group”. Limit fields say “turn Override off to inherit.” None of these check whether the account has a group.
  • With no group, the hints come from NO_GROUP_POLICY in the same file, a hand-kept copy of access.NoGroupPolicy() in internal/access/groups.go. These defaults are fixed in code and can't be set in admin settings. The effective policy for admins and ungrouped users therefore comes from the server's built-in defaults, not from a group.

Suggested fix: pick the wording from the selected group. “Inherited from ” when there is a group, “Server default” when there isn't.

Validation reference

Observed while validating #1197 C2 (admin accounts cannot join groups); parent #1195 AC4. Related: #1398 (same labels truncated). Not marked as blocking.

AI harness

Claude Code

AI tool(s)

Claude Code, GitHub CLI

AI model(s)

claude-opus-5-5

AI involvement

AI-assisted

Independent or adversarial review

n/a

Confirmations

  • I reproduced this myself on a real deployment (maintainer-observed)
  • Any logs provided are raw apart from marked redactions and are not AI-summarized; if none were available, I said so above

Activity

  1. added theissue type on Sep 24, 2026
  2. zZebrahz commented on Sep 24, 2026

    @zZebrahz
    ContributorAuthor

    Related: #1402 removes “No group” for regular users, and #1403 makes admins default to full access. Together they limit this bug to how admin defaults are labelled (for example “Admin default: Allowed”).

  3. added a commit that references this issue on Sep 25, 2026
    3584273
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