mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
add checks for staff and system user before sending flags_agreed_and_post_deleted message
This commit is contained in:
@@ -196,7 +196,7 @@ class PostDestroyer
|
||||
end
|
||||
|
||||
def agree_with_flags
|
||||
if @post.is_flagged?
|
||||
if @post.is_flagged? && @user.id > 0 && @user.staff?
|
||||
Jobs.enqueue(
|
||||
:send_system_message,
|
||||
user_id: @post.user.id,
|
||||
|
||||
Reference in New Issue
Block a user