FIX: Don't hide information from the card that is visible in the topic

It doesn't make sense to show less information on the card than already
visible.
This commit is contained in:
Robin Ward 2018-11-14 09:55:38 -05:00
parent b6576d9473
commit ea075fa4f7
1 changed files with 9 additions and 1 deletions

View File

@ -1,7 +1,15 @@
class HiddenProfileSerializer < BasicUserSerializer
attributes :profile_hidden?
attributes(
:profile_hidden?,
:title,
:primary_group_name
)
def profile_hidden?
true
end
def primary_group_name
object.primary_group.try(:name)
end
end