Disallow access to raw email for non-staff users (#17569)

This commit is contained in:
communiteq
2022-09-14 03:57:12 +02:00
committed by GitHub
parent dee8a1db20
commit 56555a0231
2 changed files with 2 additions and 3 deletions

View File

@@ -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)