aboutsummaryrefslogtreecommitdiff
path: root/routers/api
diff options
context:
space:
mode:
author无闻 <u@gogs.io>2015-02-21 02:55:30 -0500
committer无闻 <u@gogs.io>2015-02-21 02:55:30 -0500
commitfc4dff1b1727682b9641f9238f583cfade2901be (patch)
treef4a97c1b16c718f77292fff2277bb1e631c3216b /routers/api
parent58e28e5d9d0754305179be76aec06e2ae796d915 (diff)
parented89b39984a9191380263eaf357c3a9c71770674 (diff)
Merge pull request #959 from phsmit/access_update
Updating context and fixing permission issues
Diffstat (limited to 'routers/api')
-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 a049904f..73f97b2c 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
}