Skip to content

Close permission gaps in v2.3.0 - #1523

Merged
max-1-max merged 2 commits into
developfrom
fix/v2.3.0-permission-gaps
Nov 27, 2026
Merged

max-1-max merged 2 commits into
developfrom
fix/v2.3.0-permission-gaps

Conversation

@max-1-max

@max-1-max max-1-max commented Nov 27, 2026 •

Copy link
Copy Markdown
Collaborator

What this changes

  • Ticket resale can't be turned off by omission. A PUT /events/{event_id}/settings that leaves out allow_ticket_resale used to skip the ISSUE_REFUNDS check and then save resale as off. An omitted field on PUT now counts as turning resale off, the same rule offline_payment_instructions follows, so a member or API key without ISSUE_REFUNDS gets a 422 on the field instead. PATCH is unchanged.
  • Organizer profile Publish button is now shown only to members who can edit and who can manage that organizer. Viewers previously saw it enabled and got a 403 on click.
  • Waitlist "Offer Tickets" button is wrapped in WriteAccess, matching the row actions beside it.
  • Caption suggestions unavailable now returns 409 instead of a 403 with no error_code. The dashboard treats a code-less 403 on /manage/* as a sign-in failure and sent the user to login.
  • Publish celebration modal crash. The draft banner's publish flow still passed the old eventTitle/eventId props after the modal moved to taking event, so it threw on event.id once the event went live. It now passes event.

API note

PUT /events/{event_id}/settings is available to API keys. The only callers whose behaviour changes are keys or members without ISSUE_REFUNDS whose full PUT omitted allow_ticket_resale on an event with resale on. They now get a 422 instead of silently turning resale off. Worth a line in the release notes.

POST /events/{event_id}/share-suggestions is also available to API keys; its "unavailable" response moves from 403 to 409. The endpoint is new in this release, so no existing integration depends on the old code. The committed API reference is regenerated to match.

Testing

  • New Feature test: a full PUT without allow_ticket_resale from a member without ISSUE_REFUNDS is refused and resale stays on. It fails without the fix.
  • Feature tests for share suggestions, resale settings, access coverage, the permission matrix and offline payment instructions pass (84 tests).
  • Unit suite, pint --test and npx tsc --noEmit (now zero errors) pass.

- An event settings PUT that omits allow_ticket_resale now counts as
  turning resale off, so members without ISSUE_REFUNDS can't switch it
  off by leaving the field out.
- Hide the organizer profile Publish button from members who can't edit
  that organizer.
- Hide the waitlist Offer Tickets button from read-only members.
- Return 409 instead of a bare 403 when caption suggestions are
  unavailable, so the dashboard no longer sends the user to login.
- Pass the event to the celebration modal after publishing from the
  draft banner, which crashed on render.
@github-actions

github-actions Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

✅ E2E smoke tests: Everything passed.

Mode Result ✅ Passed ❌ Failed ⚠️ Flaky ⏭️ Skipped ⏱️ Duration
Self-hosted ✅ Passed 129 0 0 0 5m 24s

Open the run

@max-1-max
max-1-max merged commit 83100a6 into develop Nov 27, 2026
11 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 27, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant