mirror of
https://github.com/ansible/awx.git
synced 2026-03-26 13:25:02 -02:30
Check survey license enabled when creating, updating, and starting job
templates with surveys enabled
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user