修改留言

This commit is contained in:
fanqiang 2013-12-09 08:36:31 +08:00
parent f6b97eed48
commit 85351ee7e3
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ class WordsController < ApplicationController
refer_user_id = params[:new_form][:reference_user_id].to_i
@user.add_jour(User.current, message, refer_user_id)
unless refer_user_id == 0
unless refer_user_id == 0 || refer_user_id == User.current.id
User.find(refer_user_id).add_jour(User.current, message, refer_user_id)
end
@user.count_new_jour