mirror of
https://github.com/ansible/awx.git
synced 2026-03-28 14:25:05 -02:30
Merge pull request #3913 from AlanCoding/reimplement_sjta
Remerge: only allow superusers to start a job from a SystemJobTemplate
This commit is contained in:
@@ -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