game: allow any to get game data

This commit is contained in:
starnakin 2023-12-28 11:34:18 +01:00
parent bfc58e74a9
commit 2e8eebc788

View File

@ -14,7 +14,7 @@ class GameViewSet(viewsets.ModelViewSet):
queryset = GameModel.objects queryset = GameModel.objects
serializer_class = GameSerializer serializer_class = GameSerializer
permission_classes = (permissions.IsAuthenticated,) permission_classes = (permissions.AllowAny,)
authentication_classes = (SessionAuthentication,) authentication_classes = (SessionAuthentication,)
def retrieve(self, request: HttpRequest, pk): def retrieve(self, request: HttpRequest, pk):