mirror of
https://github.com/ansible/awx.git
synced 2026-01-16 20:30:46 -03:30
Merge pull request #5054 from AlanCoding/sys_aud_sys_job
Follow the same validate_license kwarg pattern with system jobs
This commit is contained in:
commit
7fffd937b1
@ -1357,7 +1357,7 @@ class SystemJobTemplateAccess(BaseAccess):
|
||||
model = SystemJobTemplate
|
||||
|
||||
@check_superuser
|
||||
def can_start(self, obj):
|
||||
def can_start(self, obj, validate_license=True):
|
||||
'''Only a superuser can start a job from a SystemJobTemplate'''
|
||||
return False
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user