From 703a116e437989db68990e0ed8d91d2873e6a9c8 Mon Sep 17 00:00:00 2001 From: Michael Barz Date: Wed, 13 Dec 2023 00:06:21 +0100 Subject: [PATCH] fix: missing return statement --- changelog/unreleased/fix-return-code-password-policy.md | 5 +++++ services/graph/pkg/service/v0/links.go | 1 + 2 files changed, 6 insertions(+) create mode 100644 changelog/unreleased/fix-return-code-password-policy.md diff --git a/changelog/unreleased/fix-return-code-password-policy.md b/changelog/unreleased/fix-return-code-password-policy.md new file mode 100644 index 000000000..1f714f50c --- /dev/null +++ b/changelog/unreleased/fix-return-code-password-policy.md @@ -0,0 +1,5 @@ +Bugfix: Password policy return code was wrong + +We fixed the status code on SharingNG update permissions for public shares. + +https://github.com/owncloud/ocis/pull/7952 diff --git a/services/graph/pkg/service/v0/links.go b/services/graph/pkg/service/v0/links.go index 96b0619dd..f9303fa5c 100644 --- a/services/graph/pkg/service/v0/links.go +++ b/services/graph/pkg/service/v0/links.go @@ -97,6 +97,7 @@ func (g Graph) SetLinkPassword(w http.ResponseWriter, r *http.Request) { newPermission, err := g.updatePublicLinkPassword(ctx, permissionID, password.GetPassword()) if err != nil { errorcode.RenderError(w, r, err) + return } render.Status(r, http.StatusOK)