summaryrefslogtreecommitdiffstats
path: root/routers/repo/http.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/repo/http.go')
-rw-r--r--routers/repo/http.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/repo/http.go b/routers/repo/http.go
index dc29651847..12fcbcfb3f 100644
--- a/routers/repo/http.go
+++ b/routers/repo/http.go
@@ -152,13 +152,13 @@ func HTTP(ctx *context.Context) {
}
if !isPublicPull {
- has, err := models.HasAccess(authUser, repo, accessMode)
+ has, err := models.HasAccess(authUser.ID, repo, accessMode)
if err != nil {
ctx.Handle(http.StatusInternalServerError, "HasAccess", err)
return
} else if !has {
if accessMode == models.AccessModeRead {
- has, err = models.HasAccess(authUser, repo, models.AccessModeWrite)
+ has, err = models.HasAccess(authUser.ID, repo, models.AccessModeWrite)
if err != nil {
ctx.Handle(http.StatusInternalServerError, "HasAccess2", err)
return