mirror of
https://github.com/ansible/awx.git
synced 2026-04-06 18:49:21 -02:30
prevent POST on /api/v2/system_jobs/
SystemJobs should only be created by launching a SystemJobTemplate
This commit is contained in:
@@ -3975,7 +3975,7 @@ class AdHocCommandNotificationsList(SubListAPIView):
|
|||||||
search_fields = ('subject', 'notification_type', 'body',)
|
search_fields = ('subject', 'notification_type', 'body',)
|
||||||
|
|
||||||
|
|
||||||
class SystemJobList(ListCreateAPIView):
|
class SystemJobList(ListAPIView):
|
||||||
|
|
||||||
model = models.SystemJob
|
model = models.SystemJob
|
||||||
serializer_class = serializers.SystemJobListSerializer
|
serializer_class = serializers.SystemJobListSerializer
|
||||||
|
|||||||
Reference in New Issue
Block a user