correct opt-out showing application

refs #9994
This commit is contained in:
hina 2019-02-20 20:28:50 +09:00
parent addc8393e2
commit 0e9bb70f14
No known key found for this signature in database
GPG Key ID: 44F1A65393DC58AC
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ class REST::StatusSerializer < ActiveModel::Serializer
end
def show_application?
object.account.user_shows_application? || (current_user? && current_user.account_id == object.account_id)
object.account.user&.setting_show_application || (current_user? && current_user.account_id == object.account_id)
end
def visibility