mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-06-19 02:05:37 +08:00
The `preview` GET endpoint on `SharedAiConversationsController` performs state changes (making artifacts public via `AiArtifact.share_publicly`) and bypasses authorization by only blocking `:not_allowed` errors while allowing `:other_people_in_pm` and `:other_content_in_pm` errors through. The intent was not to allow sharing in that case.
0 lines
Text
Vendored
0 lines
Text
Vendored