Remerge: only allow superusers to start a job from a SystemJobTemplate

This commit is contained in:
Wayne Witzel III
2016-09-23 10:10:39 -04:00
committed by AlanCoding
parent 549274f97b
commit ed64d4521c

View File

@@ -1320,8 +1320,10 @@ class SystemJobTemplateAccess(BaseAccess):
model = SystemJobTemplate
def can_start(self, obj, validate_license=True):
return self.can_read(obj)
@check_superuser
def can_start(self, obj):
'''Only a superuser can start a job from a SystemJobTemplate'''
return False
class SystemJobAccess(BaseAccess):
'''