forgejo-aneksajo/services/lfs
Giteabot 10d3ed53f1
Fix auth check bug (#24382) (#24387)
Backport #24382 by @lunny

Fix https://github.com/go-gitea/gitea/pull/24362/files#r1179095324

`getAuthenticatedMeta` has checked them, these code are duplicated one.
And the first invokation has a wrong permission check. `DownloadHandle`
should require read permission but not write.

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
(cherry picked from commit 5999349ce7)
2023-04-28 08:58:05 +02:00
..
locks.go Require repo scope for PATs for private repos and basic authentication (#24362) (#24364) 2023-04-28 08:58:05 +02:00
server.go Fix auth check bug (#24382) (#24387) 2023-04-28 08:58:05 +02:00