mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 03:10:42 -03: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:
commit
5a78095e05
@ -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):
|
||||
'''
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user