Refund permissions on booking cancels, and drafts kept out of content lists
Cancelling a booking refunds only for someone allowed to refund, content lists leave drafts out for an API key unless it asks, and a new phone number is announced to the account.
Added
1- AuthenticationAdding a phone number to an account, or replacing its old one, now tells the person by email at their account's address and by push, with the number's last four digits only. It is the Phone Number Changed notification in the Account category, on by default, and you can turn it off like the other account notices. A refused change sends nothing.
Fixed
4- SellingBehaviour change: cancelling a booking now refunds only when the caller holds the marketplace refunds permission (marketplace_refunds), as every other refund does. Before, permission to create bookings was enough, and the booking was refunded in full unless the request sent refund: false. Without the permission, refund: true answers 403 REFUND_NOT_ALLOWED with nothing changed, and a cancel that does not ask for a refund cancels with none and answers refundWithheld: true, which the console's cancel dialog explains. This covers POST /api/marketplace/bookings/:id/cancel and your app server's POST /api/v1/server/commerce/bookings/:id/cancel.
- ContentBehaviour change: GET /api/blogs and GET /api/docs now list only published posts to an API key unless the request asks for drafts. Before, a key that sent no published filter got drafts too, in full. Send draftPreview=true for published posts and drafts together, or a filter that names published, such as filter[published]=false for drafts only. A console session still lists both. includeDrafts: true in SDK 1.7.0 and earlier does not ask, so it now lists published posts; pass filter: { published: false } for drafts.
- WorkflowsRestoring a version with POST /api/workflows/:id/history/:versionId/restore now answers 404 Version not found and changes nothing when the version belongs to another workflow. Before, a version of any workflow in your organization could be written into this workflow's draft. GET /api/workflows/:id/versions/:versionId has the same check.
- SecurityBehaviour change: a request body or query string nested more than 32 levels deep now answers 400. Before, BuildBase cleaned only the first 10 levels and kept anything deeper as it was, so markup nested that deep could reach a public form's stored submissions, and an object there was stored as [object Object].