mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-02-23 05:59:28 -06:00
Fix error handling in GetUsers
A missing return statement caused GetUsers to return misleading results when the identity backend returned an error.
This commit is contained in:
6
changelog/unreleased/graph-getusers-err.md
Normal file
6
changelog/unreleased/graph-getusers-err.md
Normal file
@@ -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
|
||||
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user