Skip to content

Commit

Permalink
⏪️(backend) remove permissions hack
Browse files Browse the repository at this point in the history
As DRF encode/django-rest-framework#8009 has
been reverted in 3.15.1, the related hack is no longer needed.
  • Loading branch information
kernicPanel committed Mar 26, 2024
1 parent 35eeec0 commit 89add4a
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/backend/joanie/core/api/admin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,6 @@ class OrganizationViewSet(viewsets.ModelViewSet):
filterset_class = filters.OrganizationAdminFilterSet
ordering_fields = ["created_on"]

def get_permissions(self):
"""
Instantiates and returns the list of permissions that this view requires.
"""
if self.action in ["list", "retrieve"]:
return [permissions.IsAdminUser()]
return super().get_permissions()

def get_serializer_class(self):
"""
Return the serializer class to use depending on the action.
Expand Down

0 comments on commit 89add4a

Please sign in to comment.