diff options
Diffstat (limited to 'internal/route/lfs/route.go')
-rw-r--r-- | internal/route/lfs/route.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/internal/route/lfs/route.go b/internal/route/lfs/route.go index 40cb95eb..ff1bd591 100644 --- a/internal/route/lfs/route.go +++ b/internal/route/lfs/route.go @@ -131,7 +131,12 @@ func authorize(mode db.AccessMode) macaron.Handler { return } - if !db.Perms.Authorize(actor.ID, repo, mode) { + if !db.Perms.Authorize(actor.ID, repo.ID, mode, + db.AccessModeOptions{ + OwnerID: repo.OwnerID, + Private: repo.IsPrivate, + }, + ) { c.Status(http.StatusNotFound) return } |