aboutsummaryrefslogtreecommitdiffstats
path: root/routers/api/v1/repo/key.go
diff options
context:
space:
mode:
authorGiteabot <teabot@gitea.io>2023-09-26 01:24:35 +0800
committerGitHub <noreply@github.com>2023-09-25 19:24:35 +0200
commitfc7d3f73155b7ab9e2440aef0195c80b2ad72bbd (patch)
tree694e6e1da5a0d26d546f78b95e5841d7d64278e7 /routers/api/v1/repo/key.go
parent597b04fe2f4f032af3c2a4db30bbdf1437a19f34 (diff)
downloadgitea-fc7d3f73155b7ab9e2440aef0195c80b2ad72bbd.tar.gz
gitea-fc7d3f73155b7ab9e2440aef0195c80b2ad72bbd.zip
Another round of `db.DefaultContext` refactor (#27103) (#27262)
Backport #27103 by @JakobDev Part of #27065 Co-authored-by: JakobDev <jakobdev@gmx.de> Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
Diffstat (limited to 'routers/api/v1/repo/key.go')
-rw-r--r--routers/api/v1/repo/key.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/repo/key.go b/routers/api/v1/repo/key.go
index b7d820d1d8..7d97f5f5e2 100644
--- a/routers/api/v1/repo/key.go
+++ b/routers/api/v1/repo/key.go
@@ -279,7 +279,7 @@ func DeleteDeploykey(ctx *context.APIContext) {
// "404":
// "$ref": "#/responses/notFound"
- if err := asymkey_service.DeleteDeployKey(ctx.Doer, ctx.ParamsInt64(":id")); err != nil {
+ if err := asymkey_service.DeleteDeployKey(ctx, ctx.Doer, ctx.ParamsInt64(":id")); err != nil {
if asymkey_model.IsErrKeyAccessDenied(err) {
ctx.Error(http.StatusForbidden, "", "You do not have access to this key")
} else {