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:
1 parent
1265fd6bc2
commit
3c16713869
2 files changed
+7
No files matched your search
@@ -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