1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 23:51:09 +03:00

remove unnecessary CSRF exemptions

This commit is contained in:
Ryan Petrello 2018-06-28 09:35:01 -04:00
parent 3b0f7de3e6
commit d52fa377d8
No known key found for this signature in database
GPG Key ID: F2AA5F2122351777

View File

@ -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)