From da658ee524ecf6e20e0187d2a99d9b219088e968 Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Thu, 18 Dec 2014 16:38:52 -0500 Subject: [PATCH] Fix an issue with relaunching jobs --- awx/main/access.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/awx/main/access.py b/awx/main/access.py index df8cbb5cc9..a0ef5b0796 100644 --- a/awx/main/access.py +++ b/awx/main/access.py @@ -1137,7 +1137,8 @@ class JobAccess(BaseAccess): has_perm = False if obj.job_template is not None and self.user.can_access(JobTemplate, 'start', obj.job_template): has_perm = True - + dep_access = self.user.can_access(Inventory, 'read', obj.inventory) and \ + self.user.can_access(Project, 'read', obj.project) return self.can_read(obj) and dep_access and has_perm def can_cancel(self, obj):