mirror of
https://github.com/discourse/discourse.git
synced 2026-08-11 02:59:07 +08:00
Converting a topic between a private message and a regular topic is meant to go through the dedicated staff-only conversion flow. The generic topic update path did not apply that same restriction, so the topic's archetype could be changed there without it. Route archetype changes involving private messages through the same `can_convert_topic?` permission the conversion flow already uses, so both paths behave consistently. |
||
|---|---|---|
| .. | ||
| bookmark_guardian.rb | ||
| category_guardian.rb | ||
| ensure_magic.rb | ||
| flag_guardian.rb | ||
| group_guardian.rb | ||
| invite_guardian.rb | ||
| localization_guardian.rb | ||
| permalink_guardian.rb | ||
| post_guardian.rb | ||
| post_revision_guardian.rb | ||
| sidebar_guardian.rb | ||
| staff_action_log_guardian.rb | ||
| tag_guardian.rb | ||
| topic_guardian.rb | ||
| upload_guardian.rb | ||
| user_guardian.rb | ||