From f2c6a160e50681f30181469b148ca305bbdbf338 Mon Sep 17 00:00:00 2001 From: Dan Ungureanu Date: Wed, 20 Mar 2019 12:44:33 +0200 Subject: [PATCH] DEV: Fix build. Follow-up to eed1c9e0e3a168eceed34cadece5af2f38215a8d. --- app/serializers/post_serializer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/serializers/post_serializer.rb b/app/serializers/post_serializer.rb index f7a683bd575..703d312376c 100644 --- a/app/serializers/post_serializer.rb +++ b/app/serializers/post_serializer.rb @@ -371,7 +371,7 @@ class PostSerializer < BasicPostSerializer def include_post_notice_type? return false if !scope.user || !scope.user.id || scope.user.id == object.user_id || - !object.user || object.user.anonymous? || object.user.bot? + !object.user || object.user.anonymous? || object.user.bot? || !scope.user.has_trust_level?(SiteSetting.min_post_notice_tl) post_notice_type.present?