From 5fcd467fe6ac8b48e49c675da10d004255e789d9 Mon Sep 17 00:00:00 2001 From: AlanCoding Date: Fri, 6 Jan 2017 14:44:29 -0500 Subject: [PATCH] rename helper function for WJ relaunch --- awx/main/access.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awx/main/access.py b/awx/main/access.py index 70ac423098..89d04586c2 100644 --- a/awx/main/access.py +++ b/awx/main/access.py @@ -1661,9 +1661,9 @@ class WorkflowJobAccess(BaseAccess): return True # user's WFJT access doesn't guarentee permission to launch, introspect nodes - return self.can_readd(obj) + return self.can_recreate(obj) - def can_readd(self, obj): + def can_recreate(self, obj): node_qs = obj.workflow_job_nodes.all().prefetch_related('inventory', 'credential', 'unified_job_template') node_access = WorkflowJobNodeAccess(user=self.user) wj_add_perm = True