mirror of
https://github.com/ansible/awx.git
synced 2026-02-19 20:20:06 -03:30
Basic support for job start/cancel via REST API with supporting tests.
This commit is contained in:
@@ -517,6 +517,10 @@ class JobAccess(BaseAccess):
|
||||
|
||||
model = Job
|
||||
|
||||
def can_change(self, obj, data):
|
||||
print 'CAN_CHANGE', obj, data
|
||||
return self.user.is_superuser and obj.status == 'new'
|
||||
|
||||
def can_start(self, obj):
|
||||
return False # FIXME
|
||||
|
||||
|
||||
Reference in New Issue
Block a user