aboutsummaryrefslogtreecommitdiff
path: root/internal/route/repo
diff options
context:
space:
mode:
authorJoe Chen <jc@unknwon.io>2022-06-08 19:26:20 +0800
committerGitHub <noreply@github.com>2022-06-08 19:26:20 +0800
commit7229dd893f15ae30d20332706e40d8a87e0f94b0 (patch)
tree1e60a6751834efc257a4ab31c69b55bae3959e02 /internal/route/repo
parent0918d8758b7470c5e1f64a62c2e48e4168993394 (diff)
db: use `context` and go-mockgen for `PermsStore` (#7033)
Diffstat (limited to 'internal/route/repo')
-rw-r--r--internal/route/repo/http.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/route/repo/http.go b/internal/route/repo/http.go
index 0d6632be..7e970194 100644
--- a/internal/route/repo/http.go
+++ b/internal/route/repo/http.go
@@ -166,7 +166,7 @@ Please create and use personal access token on user settings page`)
if isPull {
mode = db.AccessModeRead
}
- if !db.Perms.Authorize(authUser.ID, repo.ID, mode,
+ if !db.Perms.Authorize(c.Req.Context(), authUser.ID, repo.ID, mode,
db.AccessModeOptions{
OwnerID: repo.OwnerID,
Private: repo.IsPrivate,