From fc3e252fff237e439786016fe6f55017f71aa1be Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Mon, 5 Sep 2016 20:33:27 -0400 Subject: [PATCH] Update customers_controller.rb --- app/controllers/customers_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/customers_controller.rb b/app/controllers/customers_controller.rb index f5b0b14..9e58e86 100644 --- a/app/controllers/customers_controller.rb +++ b/app/controllers/customers_controller.rb @@ -108,6 +108,7 @@ class CustomersController < ApplicationController token = CustomerToken.where("token = ? and expires_at > ?", params[:token], Time.now) if token.first User.current = User.find_by lastname: 'Anonymous' + User.current.logged = true @issue = Issue.find token.first.issue_id @journals = @issue.journals. preload(:details).