Add separate 'Delete Reference' permission

This new permission allows users to delete branches and tags, without
allowing them to push branches and tags for new commits and thus
bypass code review, as it would be possible when force push would be
granted.

Bug: Issue 2179
Change-Id: I678650570ed2ce14fc1784fc7766b8ddbe7f9729
Signed-off-by: Edwin Kempin <ekempin@google.com>
This commit is contained in:
Edwin Kempin
2016-09-07 11:43:59 +02:00
parent e82fd435e8
commit 4666bd958d
6 changed files with 74 additions and 3 deletions

View File

@@ -123,6 +123,7 @@ permissionNames = \
abandon, \
addPatchSet, \
create, \
delete, \
deleteDrafts, \
editHashtags, \
editTopicName, \
@@ -145,6 +146,7 @@ permissionNames = \
abandon = Abandon
addPatchSet = Add Patch Set
create = Create Reference
delete = Delete Reference
deleteDrafts = Delete Drafts
editHashtags = Edit Hashtags
editTopicName = Edit Topic Name