Skip to content

Commit

Permalink
Fix bad method call when deleting user secrets via API (#27829) (#27831)
Browse files Browse the repository at this point in the history
Backport #27829 by @jbgomond

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.

Co-authored-by: Jean-Baptiste Gomond <dev@jbgomond.com>
  • Loading branch information
GiteaBot and jbgomond authored Oct 29, 2023
1 parent 991c959 commit 25bc3d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routers/api/v1/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 25bc3d5

Please sign in to comment.