mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 03:36:18 +08:00
FIX: don't punish a user for being previously staged for spam flags.
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user