fix(platform): Allow POST method for verify_email action
The PlatformUserViewSet restricted HTTP methods to GET and PATCH, but the verify_email action requires POST. Added POST to allowed methods. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -820,7 +820,7 @@ class PlatformUserViewSet(viewsets.ModelViewSet):
|
|||||||
queryset = User.objects.all().order_by('-date_joined')
|
queryset = User.objects.all().order_by('-date_joined')
|
||||||
serializer_class = PlatformUserSerializer
|
serializer_class = PlatformUserSerializer
|
||||||
permission_classes = [IsAuthenticated, IsPlatformAdmin]
|
permission_classes = [IsAuthenticated, IsPlatformAdmin]
|
||||||
http_method_names = ['get', 'patch', 'head', 'options'] # Allow GET and PATCH
|
http_method_names = ['get', 'post', 'patch', 'head', 'options'] # Allow GET, POST, and PATCH
|
||||||
|
|
||||||
def get_queryset(self):
|
def get_queryset(self):
|
||||||
"""Optionally filter by business or role"""
|
"""Optionally filter by business or role"""
|
||||||
|
|||||||
Reference in New Issue
Block a user