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 25, 2024
1 parent 43ac433 commit 7259163
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 7259163

Please sign in to comment.