graph: fix missing return after error in UpdateShare
This commit is contained in:
committed by
Michael Barz
parent
419619041b
commit
3eb78bb6cc
@@ -670,6 +670,7 @@ func (g Graph) UpdatePermission(w http.ResponseWriter, r *http.Request) {
|
|||||||
updatedPermission, err := g.updateUserShare(ctx, permissionID, oldPermission, permission)
|
updatedPermission, err := g.updateUserShare(ctx, permissionID, oldPermission, permission)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
errorcode.RenderError(w, r, err)
|
errorcode.RenderError(w, r, err)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
render.Status(r, http.StatusOK)
|
render.Status(r, http.StatusOK)
|
||||||
render.JSON(w, r, &updatedPermission)
|
render.JSON(w, r, &updatedPermission)
|
||||||
|
|||||||
Reference in New Issue
Block a user