Fix an issue when creating scan job templates where we weren't obeying

the license flag, so folks could still create scan jobs even if they
weren't enabled by the license.  Plus Unit Tests
This commit is contained in:
Matthew Jones
2015-05-28 15:59:08 -04:00
parent 6709654e04
commit 5b3b4b48c0
4 changed files with 21 additions and 3 deletions

View File

@@ -1681,6 +1681,7 @@ class JobTemplateList(ListCreateAPIView):
model = JobTemplate
serializer_class = JobTemplateSerializer
always_allow_superuser = False
class JobTemplateDetail(RetrieveUpdateDestroyAPIView):