Commit Graph
1 Commits
Author SHA1 Message Date
Lauri Ojansivu 2ccd70f452 Add regression tests confirming issue #3310's three feature requests already work.
Issue #3310 (2020) asked for three things. Reading the current code shows all
three are already implemented, some in a stronger form than requested:

1. Invite code management from the Admin Panel: superseded by "Invite via
   Email" in Admin Panel -> Settings (settingBody.js), which calls the
   sendInvitation server method to generate and email a per-invitee code
   (icode), validated at sign-up (server/models/users.js) - an admin-driven
   per-person code rather than the single static field the report found.
2. Admin ability to delete a user account: Admin Panel -> People already has
   this. Each row's "more settings" link opens the settingsUser popup
   (Popup.open("settingsUser") -> template settingsUserPopup), whose
   #deleteButton calls the removeUser server method.
3. Anonymous viewing of public boards: a board's own URL (/b/:id,
   /b/:id/:slug) carries no sign-in trigger in the router, and the board
   publication's visibility selector already includes { permission: 'public' }
   for a subscriber with no userId at all (models/lib/boardVisibilitySelectors.js).

No behaviour changed; tests/issue3310FeatureRequests.test.cjs pins all three.

Thanks to Cupara and xet7 !

Fixes #3310,
2026-09-10 19:59:10 +03:00