mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 18:58:10 +00:00
Add groups to current user serializer (#6748)
This commit is contained in:
parent
9db829134c
commit
ef7f84b59b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user