mirror of
https://github.com/ansible/awx.git
synced 2026-03-09 13:39:27 -02:30
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:
@@ -1681,6 +1681,7 @@ class JobTemplateList(ListCreateAPIView):
|
||||
|
||||
model = JobTemplate
|
||||
serializer_class = JobTemplateSerializer
|
||||
always_allow_superuser = False
|
||||
|
||||
class JobTemplateDetail(RetrieveUpdateDestroyAPIView):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user