diff --git a/app/controllers/words_controller.rb b/app/controllers/words_controller.rb index bde91fcfd..b6e244735 100644 --- a/app/controllers/words_controller.rb +++ b/app/controllers/words_controller.rb @@ -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