graph: fix missing return after error in UpdateShare

This commit is contained in:
Ralf Haferkamp authored and Michael Barz committed 2023-12-15 14:48:54 +01:00
1 parent 419619041b
commit 3eb78bb6cc
1 file changed
+1
@@ -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)