summaryrefslogtreecommitdiffstats
path: root/routers/api/v1/repo_file.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/api/v1/repo_file.go')
-rw-r--r--routers/api/v1/repo_file.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/repo_file.go b/routers/api/v1/repo_file.go
index a049904f95..73f97b2cae 100644
--- a/routers/api/v1/repo_file.go
+++ b/routers/api/v1/repo_file.go
@@ -12,7 +12,7 @@ import (
)
func GetRepoRawFile(ctx *middleware.Context) {
- if ctx.Repo.Repository.IsPrivate && !ctx.Repo.HasAccess {
+ if !ctx.Repo.HasAccess() {
ctx.Error(404)
return
}