mirror of
https://github.com/ansible/awx.git
synced 2026-02-22 13:36:02 -03:30
Check license before launching job template and disallow scan job
template launch if license is unsupported
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user