From e2eed096391827a85551c4dc904cbfefdfef2e23 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Gomond Date: Sun, 29 Oct 2023 13:19:57 +0100 Subject: [PATCH] Fix bad method call when deleting user secrets via API (#27829) Fixed a little mistake when you deleting user secrets via the API. Found it when working on #27725. It should be backported to 1.21 I think. --- routers/api/v1/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go index a55fc58f21efe..b5619c6fbe2a5 100644 --- a/routers/api/v1/api.go +++ b/routers/api/v1/api.go @@ -960,7 +960,7 @@ func Routes() *web.Route { m.Group("/actions/secrets", func() { m.Combo("/{secretname}"). Put(bind(api.CreateOrUpdateSecretOption{}), user.CreateOrUpdateSecret). - Delete(repo.DeleteSecret) + Delete(user.DeleteSecret) }) m.Get("/followers", user.ListMyFollowers)