mirror of
https://github.com/ansible/awx.git
synced 2026-03-05 02:31:03 -03:30
Fix an issue with relaunching jobs
This commit is contained in:
@@ -1137,7 +1137,8 @@ class JobAccess(BaseAccess):
|
|||||||
has_perm = False
|
has_perm = False
|
||||||
if obj.job_template is not None and self.user.can_access(JobTemplate, 'start', obj.job_template):
|
if obj.job_template is not None and self.user.can_access(JobTemplate, 'start', obj.job_template):
|
||||||
has_perm = True
|
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
|
return self.can_read(obj) and dep_access and has_perm
|
||||||
|
|
||||||
def can_cancel(self, obj):
|
def can_cancel(self, obj):
|
||||||
|
|||||||
Reference in New Issue
Block a user