mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 20:44:40 +08:00
FEATURE: Allow group moderators to close/archive topics
* FEATURE: Allow group moderators to close/archive topics
This commit is contained in:
@ -768,7 +768,7 @@ class Category < ActiveRecord::Base
|
||||
end
|
||||
|
||||
def update_reviewables
|
||||
if SiteSetting.enable_category_group_review? && saved_change_to_reviewable_by_group_id?
|
||||
if SiteSetting.enable_category_group_moderation? && saved_change_to_reviewable_by_group_id?
|
||||
Reviewable.where(category_id: id).update_all(reviewable_by_group_id: reviewable_by_group_id)
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user