mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
Merge pull request #2984 from cpradio/pr-tl4-flag-spam-post-hidden
FIX: TL4 flag on TL0 post as spam, hides the post
This commit is contained in:
commit
ada8e6eb23
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue