fixed a few issues related to approval role RBAC for normal users

This commit is contained in:
Ryan Petrello
2019-08-06 11:26:14 -04:00
parent 28289e85c1
commit 0522d45ab0
8 changed files with 36 additions and 6 deletions

View File

@@ -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