graph: fix missing return after error in UpdateShare

This commit is contained in:
Ralf Haferkamp
2023-12-13 15:32:55 +01:00
committed by Michael Barz
parent 419619041b
commit 3eb78bb6cc

View File

@@ -670,6 +670,7 @@ func (g Graph) UpdatePermission(w http.ResponseWriter, r *http.Request) {
updatedPermission, err := g.updateUserShare(ctx, permissionID, oldPermission, permission)
if err != nil {
errorcode.RenderError(w, r, err)
return
}
render.Status(r, http.StatusOK)
render.JSON(w, r, &updatedPermission)