Skip to content

Commit

Permalink
fix(apis_view): set the permission class of the ReferenceViewSet
Browse files Browse the repository at this point in the history
  • Loading branch information
b1rger committed Jun 12, 2024
1 parent 4904c64 commit 2ac0b68
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apis_bibsonomy/api_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from django.contrib.contenttypes.models import ContentType
from rest_framework import status
from rest_framework.permissions import IsAuthenticated
from rest_framework.permissions import IsAuthenticated, IsAuthenticatedOrReadOnly
from rest_framework.response import Response
from rest_framework.views import APIView
from rest_framework import viewsets
Expand Down Expand Up @@ -130,3 +130,4 @@ def delete(self, request, format=None):
class ReferenceViewSet(viewsets.ModelViewSet):
queryset = Reference.objects.all()
serializer_class = ReferenceSerializer
permission_classes = [IsAuthenticatedOrReadOnly]

0 comments on commit 2ac0b68

Please sign in to comment.