@ -316,7 +316,7 @@ class UsersController < ApplicationController
end
def message_detail
if User.current == @user || User.current.admin?
if User.current == @user || User.current.admin? || User.current.business?
@target_user = User.where(:id => params[:user_id]).includes(:user_extensions).first
if @target_user.present?
@message_list = @user.private_messages.where(:target_id => params[:user_id], :status => [0, 1]).order("send_time asc")