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

@@ -119,6 +119,7 @@ class Permission(CommonModelNameNotUnique):
#
# for example, user A on inventory X has write permissions (PERM_INVENTORY_WRITE)
# team C on inventory X has read permissions (PERM_INVENTORY_READ)
# user A can create job templates (PERM_JOBTEMPLATE_CREATE)
# team C on inventory X and project Y has launch permissions (PERM_INVENTORY_DEPLOY)
# team C on inventory X and project Z has dry run permissions (PERM_INVENTORY_CHECK)
#