From d52fa377d8ea938c0950109077cb570967d868db Mon Sep 17 00:00:00 2001 From: Ryan Petrello Date: Thu, 28 Jun 2018 09:35:01 -0400 Subject: [PATCH] remove unnecessary CSRF exemptions --- awx/api/views.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/awx/api/views.py b/awx/api/views.py index 9b03df1d39..8c561d6b9e 100644 --- a/awx/api/views.py +++ b/awx/api/views.py @@ -4233,7 +4233,6 @@ class JobRelaunch(RetrieveAPIView): data.pop('credential_passwords', None) return data - @csrf_exempt @transaction.non_atomic_requests def dispatch(self, *args, **kwargs): return super(JobRelaunch, self).dispatch(*args, **kwargs) @@ -4479,7 +4478,6 @@ class AdHocCommandList(ListCreateAPIView): serializer_class = AdHocCommandListSerializer always_allow_superuser = False - @csrf_exempt @transaction.non_atomic_requests def dispatch(self, *args, **kwargs): return super(AdHocCommandList, self).dispatch(*args, **kwargs) @@ -4577,7 +4575,6 @@ class AdHocCommandRelaunch(GenericAPIView): # FIXME: Figure out why OPTIONS request still shows all fields. - @csrf_exempt @transaction.non_atomic_requests def dispatch(self, *args, **kwargs): return super(AdHocCommandRelaunch, self).dispatch(*args, **kwargs)