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:
poduck
2025-12-02 11:22:13 -05:00
parent e4ad7fca87
commit 42988c0f88

View File

@@ -820,7 +820,7 @@ class PlatformUserViewSet(viewsets.ModelViewSet):
queryset = User.objects.all().order_by('-date_joined')
serializer_class = PlatformUserSerializer
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):
"""Optionally filter by business or role"""