mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: staff should be able to edit topics that have been archived
This commit is contained in:
@@ -27,10 +27,10 @@ module TopicGuardian
|
||||
|
||||
# Editing Method
|
||||
def can_edit_topic?(topic)
|
||||
return false if topic.archived
|
||||
return true if is_my_own?(topic)
|
||||
return false if Discourse.static_doc_topic_ids.include?(topic.id) && !is_admin?
|
||||
is_staff? || user.has_trust_level?(:leader)
|
||||
return true if is_staff? || user.has_trust_level?(:leader)
|
||||
return false if topic.archived
|
||||
is_my_own?(topic)
|
||||
end
|
||||
|
||||
# Recovery Method
|
||||
|
||||
Reference in New Issue
Block a user