mirror of
https://github.com/ansible/awx.git
synced 2026-01-19 13:41:28 -03:30
Remerge: only allow superusers to start a job from a SystemJobTemplate
This commit is contained in:
parent
549274f97b
commit
ed64d4521c
@ -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