Fix inherited Read Access +2 not inheriting

Upload was rejected to a project if the user has upload permission
inherited from a parent, and there is a local reference right that
applied to a different branch and refused upload:

  --All Projects--  refs/*             Registered  1..2
  test-project      refs/heads/foobar  Registered  1..1

Uploads to "refs/heads/master" in test-project should still work,
but should deny to "refs/heads/foobar".

Bug: issue 668
Change-Id: I4ff6c02918990b36447186c569ec95f0db21e3ac
Signed-off-by: Shawn O. Pearce <sop@google.com>
2 files changed