Changed
- Pinning is a manage action. Pinning and unpinning a channel message now needs
CanManageContext, or atrueanswer from the host's optionalcontracts.PinPolicy(CanPin). The plugin looks for the policy on the access resolver the host already installs, so hosts compile unchanged. Members who only have channel access can still read the pins. - New
ChannelService.CanPinInChannel, so a host or frontend can decide whether to show the pin action.
Fixed
- A pinned message must be a live message of the channel's own conversation. Pins of messages from other conversations, unknown or deleted messages answer 404.
Upgrading
A host whose CanManageContext is false for ordinary members, and which wants them to keep pinning, implements CanPin on its access resolver (for example answering with CanAccessContext).