Merge pull request #3357 from rhafer/graph-getuser-err

Fix error handling in GetUsers
This commit is contained in:
Ralf Haferkamp
2022-03-22 13:39:08 +01:00
committed by GitHub
2 changed files with 7 additions and 0 deletions
@@ -0,0 +1,6 @@
Bugfix: Fix error handling in GraphAPI GetUsers call
A missing return statement caused GetUsers to return misleading results when
the identity backend returned an error.
https://github.com/owncloud/ocis/pull/3357
+1
View File
@@ -46,6 +46,7 @@ func (g Graph) GetUsers(w http.ResponseWriter, r *http.Request) {
} else {
errorcode.GeneralException.Render(w, r, http.StatusInternalServerError, err.Error())
}
return
}
render.Status(r, http.StatusOK)
render.JSON(w, r, &listResponse{Value: users})