mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 03:10:42 -03:30
flake8
This commit is contained in:
parent
81f093b1c0
commit
899ff8ed3b
@ -774,7 +774,7 @@ class JobTemplateAccess(BaseAccess):
|
||||
inventory = Inventory.objects.filter(id=inventory_pk)
|
||||
if not inventory.exists() and not data.get('ask_inventory_on_launch', False):
|
||||
return False
|
||||
if inventory.exists() and not self.user in inventory[0].use_role:
|
||||
if inventory.exists() and self.user not in inventory[0].use_role:
|
||||
return False
|
||||
|
||||
project_pk = get_pk_from_dict(data, 'project')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user