mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 04:11:12 +08:00
FEATURE: Allow category group moderators to list/unlist topics (#11470)
* FEATURE: Allow categroy group moderators to list/unlist topics If enabled via SiteSettings, a user belonging to a group which has been granted category group moderator privileges should be able to list/unlist topics belonging to the appropraite category.
This commit is contained in:
@ -420,6 +420,8 @@ class TopicsController < ApplicationController
|
||||
guardian.ensure_can_close_topic!(@topic)
|
||||
when 'archived'
|
||||
guardian.ensure_can_archive_topic!(@topic)
|
||||
when 'visible'
|
||||
guardian.ensure_can_toggle_topic_visibility!(@topic)
|
||||
else
|
||||
guardian.ensure_can_moderate!(@topic)
|
||||
end
|
||||
|
Reference in New Issue
Block a user