From 641e8165c7ebcebe7a323d515e1409ca9926a6c2 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 53ae8c4d0..61658d213 100644 --- a/routers/api/v1/api.go +++ b/routers/api/v1/api.go @@ -961,7 +961,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)