Skip to content

Commit

Permalink
Merge pull request #11995 from thesujai/IsAuthenticated-permission
Browse files Browse the repository at this point in the history
Add IsAuthenticated permission class in api/content/contentrequest
  • Loading branch information
rtibbles authored Mar 17, 2024
2 parents 4959560 + b7e52c8 commit 8ca3654
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kolibri/core/content/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -1392,6 +1393,7 @@ class ContentRequestViewset(ReadOnlyValuesViewset, CreateModelMixin):
filter_backends = (DjangoFilterBackend,)
filter_class = ContentRequestFilter
pagination_class = OptionalPageNumberPagination
permission_classes = [IsAuthenticated]

values = (
"id",
Expand Down

0 comments on commit 8ca3654

Please sign in to comment.