Skip to content

Commit

Permalink
changed permission class
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrewakiv committed Dec 8, 2024
1 parent ddf7082 commit 4365746
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BackEnd/administration/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

from django_filters.rest_framework import DjangoFilterBackend
from .filters import UsersFilter
from rest_framework.permissions import AllowAny


class UsersListView(ListAPIView):
"""
Expand Down Expand Up @@ -111,7 +111,7 @@ class ProfileStatisticsView(RetrieveAPIView):
Count of companies
"""

permission_classes = [AllowAny]
permission_classes = [IsStaffUser]
serializer_class = StatisticsSerializer

def get_object(self):
Expand Down

0 comments on commit 4365746

Please sign in to comment.