From 626da65339882e7fcf2a03e083d91aa50ec66788 Mon Sep 17 00:00:00 2001 From: cpradio Date: Wed, 19 Nov 2014 11:26:57 -0500 Subject: [PATCH] FIX: TL4 flag on TL0 post as spam, hides the post --- app/models/post_action.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/post_action.rb b/app/models/post_action.rb index 6eec1ac6ff2..e40c34c1885 100644 --- a/app/models/post_action.rb +++ b/app/models/post_action.rb @@ -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])