mirror of
https://github.com/ansible/awx.git
synced 2026-03-01 00:38:45 -03:30
flake8
This commit is contained in:
@@ -774,7 +774,7 @@ class JobTemplateAccess(BaseAccess):
|
|||||||
inventory = Inventory.objects.filter(id=inventory_pk)
|
inventory = Inventory.objects.filter(id=inventory_pk)
|
||||||
if not inventory.exists() and not data.get('ask_inventory_on_launch', False):
|
if not inventory.exists() and not data.get('ask_inventory_on_launch', False):
|
||||||
return 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
|
return False
|
||||||
|
|
||||||
project_pk = get_pk_from_dict(data, 'project')
|
project_pk = get_pk_from_dict(data, 'project')
|
||||||
|
|||||||
Reference in New Issue
Block a user