Add new endpoint for creation of approval nodes

This commit is contained in:
beeankha
2019-07-18 09:33:16 -04:00
committed by Ryan Petrello
parent 83f9681941
commit 320284267c
20 changed files with 148 additions and 76 deletions

View File

@@ -48,6 +48,7 @@ role_names = {
'read_role': _('Read'),
'update_role': _('Update'),
'use_role': _('Use'),
'approval_role': _('Approve'), # &&&&&& Added this here!
}
role_descriptions = {
@@ -70,6 +71,7 @@ role_descriptions = {
'read_role': _('May view settings for the %s'),
'update_role': _('May update the %s'),
'use_role': _('Can use the %s in a job template'),
'approval_role': _('Can approve or deny a workflow approval node'), # &&&&&& ...and here!
}
@@ -480,7 +482,7 @@ def get_roles_on_resource(resource, accessor):
).values_list('role_field', flat=True).distinct()
]
# &&&&&& This area is giving trouble?
def role_summary_fields_generator(content_object, role_field):
global role_descriptions
global role_names