Skip to content

Commit 4e2096f

Browse files
jbgomondsilverwind
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 ed28bf7 commit 4e2096f

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
@@ -961,7 +961,7 @@ func Routes() *web.Route {
961961
m.Group("/actions/secrets", func() {
962962
m.Combo("/{secretname}").
963963
Put(bind(api.CreateOrUpdateSecretOption{}), user.CreateOrUpdateSecret).
964-
Delete(repo.DeleteSecret)
964+
Delete(user.DeleteSecret)
965965
})
966966

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

0 commit comments

Comments
 (0)