From b4d6fc55ea93bc377c49c8cae41c4fda732fbc2b Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Mon, 19 Sep 2016 07:57:49 -0400 Subject: [PATCH] Update customers_controller.rb --- app/controllers/customers_controller.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/controllers/customers_controller.rb b/app/controllers/customers_controller.rb index 39a174a..3e6d26c 100644 --- a/app/controllers/customers_controller.rb +++ b/app/controllers/customers_controller.rb @@ -105,6 +105,9 @@ class CustomersController < ApplicationController # Customer view for an issue def view + + User.current = User.find_by lastname: 'Anonymous' + @token = CustomerToken.where("token = ? and expires_at > ?", params[:token], Time.now) @token = @token.first if @token