mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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,
|
:top_category_ids,
|
||||||
:hide_profile_and_presence
|
:hide_profile_and_presence
|
||||||
|
|
||||||
|
has_many :groups, embed: :object, serializer: BasicGroupSerializer
|
||||||
|
|
||||||
def link_posting_access
|
def link_posting_access
|
||||||
scope.link_posting_access
|
scope.link_posting_access
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user