mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 12:07:53 +08:00
Revert "FEATURE: allow end users to opt out of getting any private messages"
This reverts commit 229ecc4f8a834cb14ffa09d7b8202718d405f189.
This commit is contained in:
@ -95,8 +95,7 @@ class UserSerializer < BasicUserSerializer
|
||||
:custom_avatar_upload_id,
|
||||
:has_title_badges,
|
||||
:card_image_badge,
|
||||
:card_image_badge_id,
|
||||
:allow_private_messages
|
||||
:card_image_badge_id
|
||||
|
||||
untrusted_attributes :bio_raw,
|
||||
:bio_cooked,
|
||||
@ -158,10 +157,6 @@ class UserSerializer < BasicUserSerializer
|
||||
object.user_profile.location
|
||||
end
|
||||
|
||||
def allow_private_messages
|
||||
object.user_profile.allow_private_messages
|
||||
end
|
||||
|
||||
def can_edit
|
||||
scope.can_edit?(object)
|
||||
end
|
||||
|
Reference in New Issue
Block a user