Check license before launching job template and disallow scan job

template launch if license is unsupported
This commit is contained in:
Matthew Jones
2015-06-01 14:15:42 -04:00
parent 82ac560cf2
commit 06464333a6
2 changed files with 6 additions and 1 deletions

View File

@@ -1708,6 +1708,7 @@ class JobTemplateLaunch(RetrieveAPIView, GenericAPIView):
model = JobTemplate
serializer_class = JobLaunchSerializer
is_job_start = True
always_allow_superuser = False
def post(self, request, *args, **kwargs):
obj = self.get_object()