fix groups endpoint

This commit is contained in:
A.Unger
2020-10-22 12:25:43 +02:00
parent ea3414f833
commit 66e6673714
+1 -1
View File
@@ -17,7 +17,7 @@ import (
func (o Ocs) ListUserGroups(w http.ResponseWriter, r *http.Request) {
userid := chi.URLParam(r, "userid")
account, err := o.getAccountService().GetAccount(r.Context(), &accounts.GetAccountRequest{Id: userid})
account, err := o.fetchAccountByUsername(r.Context(), userid)
if err != nil {
merr := merrors.FromError(err)