mirror of
https://github.com/ansible/awx.git
synced 2026-06-24 16:17:51 -02:30
Add new endpoint for creation of approval nodes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user