Add groups to current user serializer (#6748)

This commit is contained in:
Maja Komel 2018-12-10 16:23:29 +01:00 committed by Régis Hanol
parent 9db829134c
commit ef7f84b59b
1 changed files with 2 additions and 0 deletions

View File

@ -45,6 +45,8 @@ class CurrentUserSerializer < BasicUserSerializer
:top_category_ids,
:hide_profile_and_presence
has_many :groups, embed: :object, serializer: BasicGroupSerializer
def link_posting_access
scope.link_posting_access
end