DEV: Fix build.

Follow-up to eed1c9e0e3.
This commit is contained in:
Dan Ungureanu 2019-03-20 12:44:33 +02:00
parent 3b59ff0d02
commit f2c6a160e5
No known key found for this signature in database
GPG Key ID: 0AA2A00D6ACC8B84
1 changed files with 1 additions and 1 deletions

View File

@ -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?