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:
parent
24630f6b54
commit
adbc22530c
2 changed files with 11 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue