mirror of
https://github.com/discourse/discourse.git
synced 2026-09-05 04:40:41 -05:00
Add groups to current user serializer (#6748)
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user