Skip to content

Commit

Permalink
Fix bad method call when deleting user secrets via API (go-gitea#27829)
Browse files Browse the repository at this point in the history
Fixed a little mistake when you deleting user secrets via the API. Found
it when working on go-gitea#27725.
It should be backported to 1.21 I think.
  • Loading branch information
jbgomond authored and silverwind committed Feb 20, 2024
1 parent ed28bf7 commit 4e2096f
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 @@ -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)
Expand Down

0 comments on commit 4e2096f

Please sign in to comment.