aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web/repo/http.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/web/repo/http.go')
-rw-r--r--routers/web/repo/http.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/repo/http.go b/routers/web/repo/http.go
index b6ebd25915..f4e9ac86a1 100644
--- a/routers/web/repo/http.go
+++ b/routers/web/repo/http.go
@@ -152,7 +152,7 @@ func httpBase(ctx *context.Context) (h *serviceHandler) {
return
}
- context.CheckRepoScopedToken(ctx, repo)
+ context.CheckRepoScopedToken(ctx, repo, auth_model.GetScopeLevelFromAccessMode(accessMode))
if ctx.Written() {
return
}