mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Disallow access to raw email for non-staff users (#17569)
This commit is contained in:
@@ -296,7 +296,7 @@ module PostGuardian
|
||||
end
|
||||
|
||||
def can_view_raw_email?(post)
|
||||
post && (is_staff? || post.user_id == @user.id)
|
||||
post && is_staff?
|
||||
end
|
||||
|
||||
def can_unhide?(post)
|
||||
|
||||
Reference in New Issue
Block a user