diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index c2e86a545..a69cf48fd 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -146,7 +146,7 @@ class ApplicationController < ActionController::Base :o_id => object.id, :history_type_id => history_type.id, :history_object_id => history_object.id, - :created_by_id => session[:user_id] + :created_by_id => current_user.id ) end