Commit acf52404 authored by den's avatar den
Browse files

Merge branch 'fix/me-403' into 'master'

/me 403 fix

Closes #3

See merge request !3
parents 1cfb5ae5 9ac471cd
Pipeline #3664 passed with stage
in 2 minutes and 27 seconds
......@@ -45,8 +45,11 @@ class ProfileViewSet(
return queryset
@action(detail=False, permission_classes=[])
def me(self, request):
if not request.user.is_authenticated:
return Response(status=401)
serializer = serializers.OwnProfileSerializer(request.user.profile, many=False)
return Response(
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment