New permission for users and teams that allow creating job templates,

this makes Deployment permissions more granular.  Includes unit tests
and a migration to promote existing "run" permissions to "create".

Also some slight doc updates to denote that this implies "run" and "check"
This commit is contained in:
Matthew Jones
2014-10-31 15:02:59 -04:00
parent 01a611b6b9
commit ede6142cea
8 changed files with 667 additions and 33 deletions

View File

@@ -107,6 +107,10 @@ angular.module('PermissionFormDefinition', [])
value: 'admin',
ngShow: "category == 'Inventory'"
}, {
label: 'Create',
value: 'create',
ngShow: "category == 'Deploy'"
}, {
label: 'Run',
value: 'run',
ngShow: "category == 'Deploy'"
@@ -135,4 +139,4 @@ angular.module('PermissionFormDefinition', [])
related: { }
}); // Form
}); // Form

View File

@@ -34,6 +34,8 @@ angular.module('PermissionsHelper', [])
} else {
scope.projectrequired = true;
html = "<dl>\n" +
"<dt>Create</dt>\n" +
"<dd>Allow the user or team to create deployments. This implies that they can run and check deployments</dd>\n" +
"<dt>Run</dt>\n" +
"<dd>Allow the user or team to perform a live deployment of the project against the inventory. In Run mode modules will " +
"be executed, and changes to the inventory will occur.</dd>\n" +