Change ProjectControl to use RefControl to decide ownership
Creating a RefControl for the magic pattern refs/* and asking that
if we have ownership privileges will let us simplify the logic in
ProjectControl (eventually), by dropping duplicated code between
the two classes.
When RefControl is asked to consider a wildcard pattern like refs/*
it will only look for other rights that match refs/*, and ignore
any more specific rights like refs/heads/master. This may not be
the right thing for other access control needs, but its what we
mean for project-level ownership.
Change-Id: I228e8decf804a8910abf966c517fd05ce180ec08
Signed-off-by: Shawn O. Pearce <sop@google.com>
2 files changed