Missed Replay property of authorization matrix

Add support for Run.Replay property of authorization matrix

Change-Id: I1101c6a15a7e9704a3eccf8f194da6280e54d172
This commit is contained in:
Dmitry Burmistrov 2017-07-12 13:36:24 +04:00
parent 51832b1881
commit 62b26140af
5 changed files with 6 additions and 0 deletions

View File

@ -406,6 +406,7 @@ def authorization(registry, xml_parent, data):
* **job-workspace**
* **ownership-jobs**
* **run-delete**
* **run-replay**
* **run-update**
* **scm-tag**
@ -436,6 +437,7 @@ def authorization(registry, xml_parent, data):
'job-workspace': 'hudson.model.Item.Workspace',
'ownership-jobs': ''.join((ownership, 'Jobs')),
'run-delete': 'hudson.model.Run.Delete',
'run-replay': 'hudson.model.Run.Replay',
'run-update': 'hudson.model.Run.Update',
'scm-tag': 'hudson.scm.SCM.Tag',
}

View File

@ -18,6 +18,7 @@
<permission>hudson.model.Item.Workspace:admin</permission>
<permission>com.synopsys.arc.jenkins.plugins.ownership.OwnershipPlugin.Jobs:admin</permission>
<permission>hudson.model.Run.Delete:admin</permission>
<permission>hudson.model.Run.Replay:admin</permission>
<permission>hudson.model.Run.Update:admin</permission>
<permission>hudson.scm.SCM.Tag:admin</permission>
<permission>hudson.model.Item.Read:anonymous</permission>

View File

@ -17,6 +17,7 @@ properties:
- job-workspace
- ownership-jobs
- run-delete
- run-replay
- run-update
- scm-tag
anonymous:

View File

@ -10,6 +10,7 @@
<permission>hudson.model.Item.Workspace:admin</permission>
<permission>hudson.model.Item.Cancel:admin</permission>
<permission>hudson.model.Run.Delete:admin</permission>
<permission>hudson.model.Run.Replay:admin</permission>
<permission>hudson.model.Run.Update:admin</permission>
<permission>hudson.scm.SCM.Tag:admin</permission>
<permission>hudson.model.Item.Discover:anonymous</permission>

View File

@ -9,6 +9,7 @@ properties:
- job-workspace
- job-cancel
- run-delete
- run-replay
- run-update
- scm-tag
anonymous: