Add user ref operation validation example.

The following example blocks any update to any ref that starts with
'refs/heads/protected-' prefix if it is performed by user that has
no 'Administrate Server' capability.

Change-Id: If5373d238a4d30fc450a4114e6af51d6536ae91a
Signed-off-by: Jacek Centkowski <>
2 files changed
tree: db137cd3077951eb4e38c5397f188c9869d97d1e
  1. lib/
  2. src/
  3. .buckconfig
  4. .gitignore
  5. BUCK
  7. pom.xml