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:
Alan Rominger 2017-01-31 15:58:56 -05:00 committed by GitHub
commit 7fffd937b1

View File

@ -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