FIX: Serialize flair group ID for preferences page (#13741)

Staff viewing the user preferences page of other users did not see the
selected flair because that information was not serialized for them.
This commit is contained in:
Bianca Nenciu 2021-07-20 13:06:40 +03:00 committed by GitHub
parent 4cb65675c6
commit 3d387d7891
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -59,6 +59,7 @@ class UserCardSerializer < BasicUserSerializer
:recent_time_read,
:primary_group_id,
:primary_group_name,
:flair_group_id,
:flair_name,
:flair_url,
:flair_bg_color,

View File

@ -42,6 +42,7 @@ RSpec.describe WebHookUserSerializer do
:recent_time_read,
:primary_group_id,
:primary_group_name,
:flair_group_id,
:flair_name,
:flair_url,
:flair_bg_color,