This commit is contained in:
2026-06-04 05:31:23 -06:00
parent f6e41dc349
commit b28301bbb1
5 changed files with 6 additions and 6 deletions

View File

@@ -78,8 +78,8 @@ class UserProfileAPI(AsyncAPIView):
profile = await UserProfile.objects.select_related("user").aget(user=user)
return self.success(UserProfileSerializer(profile, show_real_name=show_real_name).data)
@validate_serializer(EditUserProfileSerializer)
@login_required
@validate_serializer(EditUserProfileSerializer)
async def put(self, request):
data = request.data
user_profile = await UserProfile.objects.select_related("user").aget(user=request.user)