Skip to content

[Mobile] Site administration: user directory - #35

Merged
wak327 merged 1 commit into
mobile-team-adminfrom
mobile-site-admin
Sep 11, 2026
Merged

wak327 merged 1 commit into
mobile-team-adminfrom
mobile-site-admin

Conversation

@wak327

@wak327 wak327 commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Closes #17.

Only offered to an account that actually has site admin, so there is nothing to discover that the server would then refuse.

The two guards — you cannot deactivate or demote yourself, and the last active site admin is protected — are mirrored in the sheet, not to enforce them but so the action is explained before it is attempted rather than merely refused after. The last-admin count is a hint from one page; the server has the real answer and is still the one that decides.

Deactivated accounts stay in the list, dimmed, because reactivating them is the whole reason they are listed.

Setting a password exists because nothing here sends email, so the hint says to pass it on out of band rather than implying a reset link is on its way.

Verification

5 integration tests, including that a deactivated account is refused at sign-in with its own 403 rather than "incorrect password", and that both self-guards hold.

Closes #17.

Only offered to an account that actually has site admin, so there is nothing to
discover that the server would then refuse.

The two guards -- you cannot deactivate or demote yourself, and the last active
site admin is protected -- are mirrored in the sheet, not to enforce them but so
the action is explained before it is attempted rather than merely refused after.
The last-admin count is a hint from one page; the server has the real answer and
is still the one that decides.

Deactivated accounts stay in the list, dimmed, because reactivating them is the
whole reason they are listed.

Setting a password exists because nothing here sends email, so the hint says to
pass it on out of band rather than implying a reset link is on its way.

Verified against a live instance, including that a deactivated account is
refused at sign-in with its own 403 rather than "incorrect password", and that
both self-guards hold.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@wak327
wak327 merged commit 33e552c into mobile-team-admin Sep 11, 2026
2 checks passed
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