Skip to content
Snippets Groups Projects
Commit 62a7d05c authored by Barnabás Czémán's avatar Barnabás Czémán
Browse files

FIX2 unavaible profile

parent d2ed945c
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@ class ProfileViewSet(viewsets.ModelViewSet):
if user.has_perm(permissions.IsAdminUser):
return models.Profile.objects.all()
return user.profile
return models.Profile.objects.filter(pk=user.profile.id)
@list_route(methods=['get'])
def me(self, request):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment