Skip to content

Commit 89add4a

Browse files
committed
⏪️(backend) remove permissions hack
As DRF encode/django-rest-framework#8009 has been reverted in 3.15.1, the related hack is no longer needed.
1 parent 35eeec0 commit 89add4a

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/backend/joanie/core/api/admin/__init__.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,6 @@ class OrganizationViewSet(viewsets.ModelViewSet):
4141
filterset_class = filters.OrganizationAdminFilterSet
4242
ordering_fields = ["created_on"]
4343

44-
def get_permissions(self):
45-
"""
46-
Instantiates and returns the list of permissions that this view requires.
47-
"""
48-
if self.action in ["list", "retrieve"]:
49-
return [permissions.IsAdminUser()]
50-
return super().get_permissions()
51-
5244
def get_serializer_class(self):
5345
"""
5446
Return the serializer class to use depending on the action.

0 commit comments

Comments
 (0)