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:
parent
b6576d9473
commit
ea075fa4f7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue