mirror of
https://github.com/ZwareBear/awx.git
synced 2026-04-25 09:21:48 -05:00
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