Homec4science

Only require view permissions for read-only Git LFS requests

Authored by epriestley <git@epriestley.com> on Mar 19 2016, 18:11.

Description

Only require view permissions for read-only Git LFS requests

Summary: Ref T7789. Implement proper detection for read-only requests. Previously, we assumed every request was read/write and required lots of permissions, but we don't need "Can Push" permission if you're only cloning/fetching/pulling.

Test Plan:

  • Set push policy to "no one".
  • Fetched, got clean data out of LFS.
  • Tried to push, got useful error.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T7789

Differential Revision: https://secure.phabricator.com/D15499

Details

Committed
epriestley <git@epriestley.com>Mar 19 2016, 22:23
Pushed
aubortJan 31 2017, 17:16
Parents
rPHd5f9e49e29c1: Use PHUIStatusListView in Diffusion commit list
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPH76f07ec80bde: Only require view permissions for read-only Git LFS requests (authored by epriestley <git@epriestley.com>).Mar 19 2016, 22:23