mirror of
https://github.com/ansible/awx.git
synced 2026-05-06 08:57:35 -02: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:
@@ -1357,7 +1357,7 @@ class SystemJobTemplateAccess(BaseAccess):
|
|||||||
model = SystemJobTemplate
|
model = SystemJobTemplate
|
||||||
|
|
||||||
@check_superuser
|
@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'''
|
'''Only a superuser can start a job from a SystemJobTemplate'''
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user