2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-05 08:59:27 +08:00

FIX: don't show badges in summary page if badges disabled

This commit is contained in:
Sam 2016-03-29 17:11:47 +11:00
parent 24630f6b54
commit adbc22530c
2 changed files with 11 additions and 5 deletions

View file

@ -15,4 +15,8 @@ class UserSummarySerializer < ApplicationSerializer
attributes :likes_given, :likes_received, :posts_read_count,
:days_visited, :topic_count, :post_count
def include_badges?
SiteSetting.enable_badges
end
end