Skip to content

Commit

Permalink
remove None get_permissions function cinema/views
Browse files Browse the repository at this point in the history
  • Loading branch information
Viesich committed Nov 11, 2024
1 parent 2e04c2f commit 95b2ce2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cinema/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from rest_framework import viewsets
from rest_framework.pagination import PageNumberPagination
from rest_framework.permissions import IsAuthenticated
from rest_framework.permissions import IsAuthenticated, IsAdminUser

from cinema.models import Genre, Actor, CinemaHall, Movie, MovieSession, Order
from cinema.permissions import IsAdminOrIfAuthenticatedReadOnly
Expand Down Expand Up @@ -32,7 +32,7 @@ def get_permissions(self):
if self.action in ("list", "create"):
return (IsAdminOrIfAuthenticatedReadOnly(), )
else:
return None
return (IsAdminUser, )


class ActorViewSet(viewsets.ModelViewSet):
Expand Down

0 comments on commit 95b2ce2

Please sign in to comment.