mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 11:25:24 +00:00
FIX: TL4 flag on TL0 post as spam, hides the post
This commit is contained in:
parent
a036ac7bdc
commit
626da65339
@ -384,7 +384,7 @@ class PostAction < ActiveRecord::Base
|
||||
return if post.hidden
|
||||
|
||||
if post_action_type == :spam &&
|
||||
acting_user.trust_level == TrustLevel[3] &&
|
||||
acting_user.has_trust_level?(TrustLevel[3]) &&
|
||||
post.user.trust_level == TrustLevel[0]
|
||||
|
||||
hide_post!(post, post_action_type, Post.hidden_reasons[:flagged_by_tl3_user])
|
||||
|
Loading…
x
Reference in New Issue
Block a user