mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 02:12:09 +08:00
FEATURE: Allow group moderators to add/remove staff notes (#10252)
* FEATURE: Allow group moderators to add/remove staff notes
This commit is contained in:
@ -474,9 +474,8 @@ class PostsController < ApplicationController
|
||||
end
|
||||
|
||||
def notice
|
||||
raise Discourse::NotFound unless guardian.is_staff?
|
||||
|
||||
post = find_post_from_params
|
||||
raise Discourse::NotFound unless guardian.can_edit_staff_notes?(post.topic)
|
||||
|
||||
if params[:notice].present?
|
||||
post.custom_fields[Post::NOTICE_TYPE] = Post.notices[:custom]
|
||||
|
Reference in New Issue
Block a user