mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 10:24:39 +08:00
For now, restrict whispering to staff only.
This commit is contained in:
@ -465,7 +465,7 @@ class PostsController < ApplicationController
|
||||
result[:is_warning] = false
|
||||
end
|
||||
|
||||
if SiteSetting.enable_whispers? && params[:whisper] == "true"
|
||||
if current_user.staff? && SiteSetting.enable_whispers? && params[:whisper] == "true"
|
||||
result[:post_type] = Post.types[:whisper]
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user