mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 02:50:00 +08: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…
Reference in New Issue
Block a user