mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: allow moderators to convert a private message to public topic or vice versa
This commit is contained in:
@@ -59,7 +59,9 @@ module TopicGuardian
|
||||
end
|
||||
|
||||
def can_convert_topic?(topic)
|
||||
topic && !topic.trashed? && is_admin?
|
||||
return false if topic && topic.trashed?
|
||||
return true if is_admin?
|
||||
is_moderator? && can_create_post?(topic)
|
||||
end
|
||||
|
||||
def can_reply_as_new_topic?(topic)
|
||||
|
||||
Reference in New Issue
Block a user