From b7e52c884469f1080a0324c73ef29279b63d0855 Mon Sep 17 00:00:00 2001 From: Sujai Kumar Gupta Date: Sat, 16 Mar 2024 02:31:14 +0530 Subject: [PATCH] add IsAuthenticated permission class in api/content/contentrequest --- kolibri/core/content/api.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kolibri/core/content/api.py b/kolibri/core/content/api.py index 54f6e6f2e0a..7c08e8f6538 100644 --- a/kolibri/core/content/api.py +++ b/kolibri/core/content/api.py @@ -40,6 +40,7 @@ from rest_framework import viewsets from rest_framework.decorators import action from rest_framework.generics import get_object_or_404 +from rest_framework.permissions import IsAuthenticated from rest_framework.response import Response from kolibri.core.api import BaseValuesViewset @@ -1392,6 +1393,7 @@ class ContentRequestViewset(ReadOnlyValuesViewset, CreateModelMixin): filter_backends = (DjangoFilterBackend,) filter_class = ContentRequestFilter pagination_class = OptionalPageNumberPagination + permission_classes = [IsAuthenticated] values = ( "id",