mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 18:09:57 -03:30
Change access to only allow super users to post to the jobs list without
a job template
This commit is contained in:
parent
85762c3470
commit
2da1189a7c
@ -1011,6 +1011,9 @@ class JobAccess(BaseAccess):
|
||||
add_data.setdefault('credential', job_template.credential.pk)
|
||||
else:
|
||||
job_template = None
|
||||
# Only admins can create jobs without job templates
|
||||
if not self.user.is_superuser:
|
||||
return False
|
||||
|
||||
# Check that the user would be able to add a job template with the
|
||||
# same data.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user