mirror of
https://github.com/ansible/awx.git
synced 2026-03-04 10:11:05 -03:30
follow validate_license pattern w sys 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