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