mirror of
https://github.com/lemeow125/Ivy-Backend.git
synced 2024-11-17 06:39:26 +08:00
Only allow get method in user list endpoint
This commit is contained in:
parent
d2a869b685
commit
dd115197f4
1 changed files with 1 additions and 0 deletions
|
@ -13,6 +13,7 @@ class ProductViewSet(viewsets.ModelViewSet):
|
|||
|
||||
class UserListViewSet(viewsets.ModelViewSet):
|
||||
# permission_classes = [IsAuthenticated]
|
||||
http_method_names = ['get']
|
||||
serializer_class = UserSerializer
|
||||
queryset = User.objects.all()
|
||||
|
||||
|
|
Loading…
Reference in a new issue