Check survey license enabled when creating, updating, and starting job

templates with surveys enabled
This commit is contained in:
Matthew Jones
2015-06-01 17:01:28 -04:00
parent 72c12054c1
commit 7d8edd9617
3 changed files with 29 additions and 4 deletions

View File

@@ -1700,6 +1700,7 @@ class JobTemplateDetail(RetrieveUpdateDestroyAPIView):
model = JobTemplate
serializer_class = JobTemplateSerializer
always_allow_superuser = False
def destroy(self, request, *args, **kwargs):
obj = self.get_object()