Skip to content

Commit

Permalink
fix: allow dumpdata API access for all authenticated users
Browse files Browse the repository at this point in the history
  • Loading branch information
b1rger committed Dec 19, 2023
1 parent 683b1da commit a2ffbfd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apis_core/core/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework.permissions import IsAuthenticated

from apis_core.utils.helpers import datadump_serializer

Expand All @@ -16,6 +17,8 @@ class Dumpdata(APIView):
so basically: serialize -> deserialize -> serialize
"""

permission_classes = [IsAuthenticated]

def get(self, request, *args, **kwargs):
params = request.query_params.dict()
app_labels = params.pop("app_labels", [])
Expand Down

0 comments on commit a2ffbfd

Please sign in to comment.