FIX: don't punish a user for being previously staged for spam flags.

This commit is contained in:
Jeff Wong
2018-06-15 10:45:53 -07:00
parent 2268e29c26
commit 9e55767f6a
3 changed files with 10 additions and 2 deletions

View File

@ -144,7 +144,7 @@ class Validators::PostValidator < ActiveModel::Validator
private
def acting_user_is_trusted?(post, level = 1)
post.acting_user.present? && post.acting_user.has_trust_level?(TrustLevel[level])
post.acting_user.present? && (post.acting_user.has_trust_level?(TrustLevel[level]) || post.acting_user.from_staged?)
end
def private_message?(post)