mirror of
https://github.com/ansible/awx.git
synced 2026-05-14 04:47:44 -02:30
Remerge: only allow superusers to start a job from a SystemJobTemplate
This commit is contained in:
committed by
AlanCoding
parent
549274f97b
commit
ed64d4521c
@@ -1320,8 +1320,10 @@ class SystemJobTemplateAccess(BaseAccess):
|
|||||||
|
|
||||||
model = SystemJobTemplate
|
model = SystemJobTemplate
|
||||||
|
|
||||||
def can_start(self, obj, validate_license=True):
|
@check_superuser
|
||||||
return self.can_read(obj)
|
def can_start(self, obj):
|
||||||
|
'''Only a superuser can start a job from a SystemJobTemplate'''
|
||||||
|
return False
|
||||||
|
|
||||||
class SystemJobAccess(BaseAccess):
|
class SystemJobAccess(BaseAccess):
|
||||||
'''
|
'''
|
||||||
|
|||||||
Reference in New Issue
Block a user