Fix AC-293. Explicitly check for start/cancel permissions on job for access to job start/cancel views.

This commit is contained in:
Chris Church
2013-07-28 13:50:25 -04:00
parent 6f09299284
commit 4c2af3a879
2 changed files with 13 additions and 2 deletions

View File

@@ -782,6 +782,7 @@ class JobDetail(RetrieveUpdateDestroyAPIView):
class JobStart(generics.GenericAPIView):
model = Job
is_job_start = True
def get(self, request, *args, **kwargs):
obj = self.get_object()
@@ -807,6 +808,7 @@ class JobStart(generics.GenericAPIView):
class JobCancel(generics.GenericAPIView):
model = Job
is_job_cancel = True
def get(self, request, *args, **kwargs):
obj = self.get_object()