Skip to content

Commit e2eed09

Browse files
jbgomondGiteaBot
authored andcommitted
Fix bad method call when deleting user secrets via API (go-gitea#27829)
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.
1 parent 991c959 commit e2eed09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/api/v1/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,7 @@ func Routes() *web.Route {
960960
m.Group("/actions/secrets", func() {
961961
m.Combo("/{secretname}").
962962
Put(bind(api.CreateOrUpdateSecretOption{}), user.CreateOrUpdateSecret).
963-
Delete(repo.DeleteSecret)
963+
Delete(user.DeleteSecret)
964964
})
965965

966966
m.Get("/followers", user.ListMyFollowers)

0 commit comments

Comments
 (0)