Skip to content

Commit

Permalink
solution
Browse files Browse the repository at this point in the history
  • Loading branch information
Viesich committed Nov 11, 2024
1 parent 95b2ce2 commit bdb9ff4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cinema/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def get_permissions(self):
if self.action in ("list", "create"):
return (IsAdminOrIfAuthenticatedReadOnly(), )
else:
return (IsAdminUser, )
return (IsAdminUser(), )


class ActorViewSet(viewsets.ModelViewSet):
Expand Down

0 comments on commit bdb9ff4

Please sign in to comment.