From 8ef89f06351b541ba4a392b8e332ca13fbc90c69 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Fri, 20 Apr 2012 09:22:51 +0200 Subject: [PATCH] Fixed server error with access via http basic auth. --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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