stable
Clone or download
Read-only
The goal of this contribution is to extract the authorization checking done in the basic upload controller so it can be reused in other controllers handling LFS batch action requests. No functionnal change is expected. This is part of story #12322: have git-lfs batch and basic transfer API Change-Id: I6a39a693a3c357f4a3ac1b6def4e7b1b6e49026d
Modified Files
Name | ||||
---|---|---|---|---|
A | plugins/gitlfs/include/Transfer/AuthorizedActionStore.php | +54 | −0 | Go to diff View file |
M | plugins/gitlfs/include/Transfer/Basic/LFSBasicTransferUploadController.php | +16 | −64 | Go to diff View file |
A | plugins/gitlfs/include/Transfer/LFSActionUserAccessHTTPRequestChecker.php | +104 | −0 | Go to diff View file |
M | plugins/gitlfs/include/gitlfsPlugin.class.php | +18 | −7 | Go to diff View file |
A | plugins/gitlfs/phpunit/Transfer/AuthorizedActionStoreTest.php | +55 | −0 | Go to diff View file |
A | plugins/gitlfs/phpunit/Transfer/LFSActionUserAccessHTTPRequestCheckerTest.php | +179 | −0 | Go to diff View file |