Skip to content

fix(admin): lock primary admin's Allowed Systems to all#34

Merged
revtex merged 1 commit intodevfrom
fix/primary-admin-systems-lock
Apr 25, 2026
Merged

fix(admin): lock primary admin's Allowed Systems to all#34
revtex merged 1 commit intodevfrom
fix/primary-admin-systems-lock

Conversation

@revtex
Copy link
Copy Markdown
Owner

@revtex revtex commented Apr 25, 2026

When editing user id=1 (the primary admin), the Allowed Systems badges are now non-interactive and rendered as if every system is selected, with helper text explaining the primary admin always has full access. On save, systemsJson is forced to null for the primary admin so any stale restriction gets cleared.

The first user (id=1) is the primary admin and always has access to every system. Disable the Allowed Systems badges in the edit modal (all shown as selected, non-clickable, with explanatory text) and force systemsJson=null on save for editingId===1 so any pre-existing restriction gets cleared.
@revtex revtex merged commit 115f8f1 into dev Apr 25, 2026
7 checks passed
@revtex revtex deleted the fix/primary-admin-systems-lock branch April 25, 2026 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant