fix(profiles): online null when not authenticated

This commit is contained in:
AdrienLSH
2024-04-28 09:50:38 +02:00
parent 9fea10fc91
commit 4351c335cb
3 changed files with 8 additions and 2 deletions

View File

@ -25,7 +25,7 @@ class ProfileSerializer(serializers.ModelSerializer):
user = request.user
if user is None:
return False
return None
if user.pk == obj.pk:
return True