diff --git a/routers/api/v1/repo/key.go b/routers/api/v1/repo/key.go index 4d25df9108..824880880a 100644 --- a/routers/api/v1/repo/key.go +++ b/routers/api/v1/repo/key.go @@ -155,11 +155,6 @@ func GetDeployKey(ctx *context.APIContext) { return } - if key.RepoID != ctx.Repo.Repository.ID { - ctx.Status(http.StatusNotFound) - return - } - if err = key.GetContent(); err != nil { ctx.Error(http.StatusInternalServerError, "GetContent", err) return