mirror of
https://github.com/ansible/awx.git
synced 2026-05-20 07:17:40 -02:30
fixed a few issues related to approval role RBAC for normal users
This commit is contained in:
@@ -523,6 +523,7 @@ class TaskManager():
|
||||
workflow_approval = WorkflowApproval.objects.filter(status='pending').prefetch_related('workflow_approval_template')
|
||||
now = tz_now()
|
||||
for task in workflow_approval:
|
||||
# TODO: copy the timeout to the job itself at launch time, not the template
|
||||
approval_timeout_seconds = timedelta(seconds=task.workflow_approval_template.timeout)
|
||||
if task.workflow_approval_template.timeout == 0:
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user