From 30645945da676f41ea509fc83b38954d5684814d Mon Sep 17 00:00:00 2001 From: Kerwin Bryant Date: Thu, 5 Dec 2024 14:45:56 +0000 Subject: [PATCH] fix --- routers/web/repo/file.go | 1 - 1 file changed, 1 deletion(-) diff --git a/routers/web/repo/file.go b/routers/web/repo/file.go index 80f7ec90c27da..60e7cb24b74da 100644 --- a/routers/web/repo/file.go +++ b/routers/web/repo/file.go @@ -20,7 +20,6 @@ func canReadFiles(r *context.Repository) bool { // GetContents Get the metadata and contents (if a file) of an entry in a repository, or a list of entries if a dir func GetContents(ctx *context.Context) { - if !canReadFiles(ctx.Repo) { ctx.NotFound("Invalid FilePath", nil) return