mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-17 19:12:37 -05:00
User the BasicUserSerializer for the invited user
This commit is contained in:
parent
046e6e5d86
commit
45361934b9
1 changed files with 1 additions and 1 deletions
|
@ -12,11 +12,11 @@ class UserSerializer < BasicUserSerializer
|
|||
:stats,
|
||||
:can_send_private_message_to_user,
|
||||
:bio_excerpt,
|
||||
:invited_by,
|
||||
:trust_level,
|
||||
:moderator,
|
||||
:admin
|
||||
|
||||
has_one :invited_by, embed: :object, serializer: BasicUserSerializer
|
||||
|
||||
def self.private_attributes(*attrs)
|
||||
attributes *attrs
|
||||
|
|
Loading…
Reference in a new issue