Skip to content

Commit

Permalink
Get user groups recursively in the cbox rest user driver (#1910)
Browse files Browse the repository at this point in the history
  • Loading branch information
ishank011 authored Jul 22, 2021
1 parent e2cffac commit 6494cac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelog/unreleased/rest-recursive-groups.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Bugfix: Get user groups recursively in the cbox rest user driver

https://github.com/cs3org/reva/pull/1910
2 changes: 1 addition & 1 deletion pkg/cbox/user/rest/rest.go
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ func (m *manager) GetUserGroups(ctx context.Context, uid *userpb.UserId) ([]stri
if err != nil {
return nil, err
}
url := fmt.Sprintf("%s/Identity/%s/groups", m.conf.APIBaseURL, internalID)
url := fmt.Sprintf("%s/Identity/%s/groups?recursive=true", m.conf.APIBaseURL, internalID)
groupData, err := m.apiTokenManager.SendAPIGetRequest(ctx, url, false)
if err != nil {
return nil, err
Expand Down

0 comments on commit 6494cac

Please sign in to comment.