diff options
Diffstat (limited to 'routers/repo/http.go')
-rw-r--r-- | routers/repo/http.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/http.go b/routers/repo/http.go index b1c7cbbdb8..0bea513eff 100644 --- a/routers/repo/http.go +++ b/routers/repo/http.go @@ -206,7 +206,7 @@ func HTTP(ctx *context.Context) { } } - if !repo.CheckUnitUser(authUser.ID, unitType) { + if !repo.CheckUnitUser(authUser.ID, authUser.IsAdmin, unitType) { ctx.HandleText(http.StatusForbidden, fmt.Sprintf("User %s does not have allowed access to repository %s 's code", authUser.Name, repo.RepoPath())) return |