From 8a9676f881732a4e50fc9832543183d94ee3585b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lo=C3=AFc=20Dachary?= <loic@dachary.org>
Date: Sun, 26 Nov 2023 06:33:29 +0100
Subject: [PATCH] Revert "fix GET /api/v1/repos/{owner}/{repo}/keys/{id}"

This reverts commit 5322136af8bef35d61303b9fdd2c10753d4bb54b.
---
 routers/api/v1/repo/key.go | 5 -----
 1 file changed, 5 deletions(-)

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