mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Split toggle topic close job (#11679)
Splits the `ToggleTopicClosed` job into two distinct `OpenTopic` and `CloseTopic` jobs to make the code clearer. The old job cannot be deleted yet because of outstanding sidekiq schedules, so a todo has been added to do so later this year. Also replaced mentions of `topic_status_update` with `topic_timer` in some files, because the `topic_status_update` model is obsolete and replaced by topic timer. Added some shortcut methods for checking if a topic is open/whether a user can change an open topic.
This commit is contained in:
@@ -234,6 +234,7 @@ module TopicGuardian
|
||||
end
|
||||
alias :can_archive_topic? :can_perform_action_available_to_group_moderators?
|
||||
alias :can_close_topic? :can_perform_action_available_to_group_moderators?
|
||||
alias :can_open_topic? :can_perform_action_available_to_group_moderators?
|
||||
alias :can_split_merge_topic? :can_perform_action_available_to_group_moderators?
|
||||
alias :can_edit_staff_notes? :can_perform_action_available_to_group_moderators?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user