Fix group deploy token access for Git LFS
What does this MR do and why?
This MR solves #235398 (closed)
The LFS access code validates token project access manually instead of using has_access_to?.
This means it does not work with group deploy tokens.
Screenshots or screen recordings
How to set up and validate locally
- Create repo with LFS files
- Create group deploy token in the group the repo is in.
- Clone repo and
git lfs fetch
.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Marius Schiffer