mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
UX: do not show "Message" button on user's own profile page/card
This commit is contained in:
parent
5e156fbe85
commit
aa1a68b979
@ -249,7 +249,7 @@ class UserSerializer < BasicUserSerializer
|
||||
end
|
||||
|
||||
def can_send_private_message_to_user
|
||||
scope.can_send_private_message?(object)
|
||||
scope.can_send_private_message?(object) && scope.current_user != object
|
||||
end
|
||||
|
||||
def bio_excerpt
|
||||
|
Loading…
Reference in New Issue
Block a user