Repository navigation
Close permission gaps in v2.3.0 - #1523
Merged
Merged
Conversation
- 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.
Contributor
✅ E2E smoke tests: Everything passed.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
PUT /events/{event_id}/settingsthat leaves outallow_ticket_resaleused 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 ruleoffline_payment_instructionsfollows, so a member or API key without ISSUE_REFUNDS gets a 422 on the field instead. PATCH is unchanged.WriteAccess, matching the row actions beside it.error_code. The dashboard treats a code-less 403 on/manage/*as a sign-in failure and sent the user to login.eventTitle/eventIdprops after the modal moved to takingevent, so it threw onevent.idonce the event went live. It now passesevent.API note
PUT /events/{event_id}/settingsis available to API keys. The only callers whose behaviour changes are keys or members without ISSUE_REFUNDS whose full PUT omittedallow_ticket_resaleon 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-suggestionsis 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
allow_ticket_resalefrom a member without ISSUE_REFUNDS is refused and resale stays on. It fails without the fix.pint --testandnpx tsc --noEmit(now zero errors) pass.