From 2e8eebc7886f0dd4ec507d7abcfb6388286677a9 Mon Sep 17 00:00:00 2001 From: starnakin Date: Thu, 28 Dec 2023 11:34:18 +0100 Subject: [PATCH] game: allow any to get game data --- games/viewset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/games/viewset.py b/games/viewset.py index 622cdf1..17e25a1 100644 --- a/games/viewset.py +++ b/games/viewset.py @@ -14,7 +14,7 @@ class GameViewSet(viewsets.ModelViewSet): queryset = GameModel.objects serializer_class = GameSerializer - permission_classes = (permissions.IsAuthenticated,) + permission_classes = (permissions.AllowAny,) authentication_classes = (SessionAuthentication,) def retrieve(self, request: HttpRequest, pk):