gitea/services/lfs
Lunny Xiao ecf1f2d3f6
Fix auth check bug ()
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.
..
locks.go Require repo scope for PATs for private repos and basic authentication ()
server.go Fix auth check bug ()