UX: Show chat and message buttons on your own profile (#27600)

This commit is contained in:
Jan Cernik
2024-06-25 07:52:17 -03:00
committed by GitHub
parent c8e65fa673
commit a07ddf4ec0
4 changed files with 34 additions and 6 deletions

View File

@ -147,7 +147,7 @@ class UserCardSerializer < BasicUserSerializer
end
def can_send_private_message_to_user
scope.can_send_private_message?(object) && scope.current_user != object
scope.can_send_private_message?(object) || scope.current_user == object
end
def include_suspend_reason?