8000 fix(admin): limit what viewing as someone can do by mwoods79 · Pull Request #749 · huddlz-hq/huddlz · GitHub
[go: up one dir, main page]

Skip to content

fix(admin): limit what viewing as someone can do - #749

Merged
mwoods79 merged 4 commits into
mainfrom
t3/view-as-limits
Dec 1, 2026
Merged

mwoods79 merged 4 commits into
mainfrom
t3/view-as-limits

Conversation

@mwoods79
@mwoods79 mwoods79 commented Dec 1, 2026
Copy link
Copy Markdown
Contributor

Summary

  • Reserve reports, blocks, and changes to sign-in settings for the account holder. During a viewing, the profile and API key pages explain the restriction and hide the controls.
  • End a viewing when the administrator loses access or either sign-in ends. Close abandoned viewings in the audit history.

Evidence

Before: New acceptance scenarios failed on the report menu, profile settings, and an open profile after demotion. The audit tests found an open record after revocation.

After: Those scenarios pass. Integration tests cover browser requests, connected mounts, API authentication, and repeat cleanup while another viewing stays active.

Merge Danger

Door: Two-way
Blast Radius: Limited

  • The migration adds two nullable token identifiers to viewing records. It stores no credential secrets.
  • Cleanup runs every five minutes. Older viewings close when their browser discovers the lost sign-in, or after the configured token lifetime if abandoned.
  • A viewing that ends stays closed. An eligible administrator can start another.

@mwoods79
mwoods79 commented Dec 1, 2026
Copy link
Copy Markdown
Contributor Author

An administrator viewing as a generated member, at desktop width in the light theme. Each pair shows the same account state on main (1d65f70e) and the PR head (8c997ba3).

Page Before After
Huddl · organizer menu Before, the organizer menu offers Report account After, the organizer menu is hidden and the banner explains the restriction
Group · members Before, a member’s menu offers Report account After, members are listed without report menus
Profile Before, the profile offers email and password changes After, the profile explains who can change sign-in settings
API keys Before, active and expired keys offer Revoke and Remove After, both keys are listed without management actions
Email change approval Before, the pending address change offers approval and reporting After, the approval page explains the account-holder restriction
Email confirmation Before, the viewed member’s confirmation link offers to confirm the address After, the confirmation page explains that only the account holder can confirm

@mwoods79
mwoods79 enabled auto-merge (squash) December 1, 2026 22:06
@mwoods79
mwoods79 merged commit a841a22 into main Dec 1, 2026
11 of 15 checks passed
@mwoods79
mwoods79 deleted the t3/view-as-limits branch December 1, 2026 22:09
mwoods79 added a commit that referenced this pull request Dec 1, 2026
* origin/main:
  fix(admin): limit what viewing as someone can do (#749)
  fix(groups): bind invitations only to accounts with a confirmed address (#728)
  fix(photos): follow the current organizer role for huddl photos (#746)
  fix(api): keep restricted fields out of sorting and filtering (#744)
  fix(huddl)!: keep a recurring series within its own group (#724)
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

0