index
:
gogs.git
Gogs is a painless self-hosted Git service
log msg
author
committer
range
buildscript
main
mygogs
about
summary
refs
log
tree
commit
diff
path:
root
/
internal
/
route
/
repo
/
http.go
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
Diffstat
(limited to 'internal/route/repo/http.go')
-rw-r--r--
internal/route/repo/http.go
2
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,