mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 11:20:39 -03:30
All non-superusers to create prompted JTs
This commit is contained in:
parent
df62b85a2f
commit
dfec286bed
@ -772,7 +772,7 @@ class JobTemplateAccess(BaseAccess):
|
||||
# Check that the given inventory ID is valid.
|
||||
inventory_pk = get_pk_from_dict(data, 'inventory')
|
||||
inventory = Inventory.objects.filter(id=inventory_pk)
|
||||
if not inventory.exists():
|
||||
if not inventory.exists() and not data.get('ask_inventory_on_launch', False):
|
||||
return False # Does this make sense? Maybe should check read access
|
||||
|
||||
project_pk = get_pk_from_dict(data, 'project')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user