diff --git a/app/controllers/customers_controller.rb b/app/controllers/customers_controller.rb index d650a09..978288f 100644 --- a/app/controllers/customers_controller.rb +++ b/app/controllers/customers_controller.rb @@ -95,6 +95,7 @@ class CustomersController < ApplicationController token = CustomerToken.where("token = ? and expires_at > ?", params[:token], Time.now) if token @issue = Issue.find token.first.issue_id + render :template => 'issues/show' else render :file => "public/401.html.erb", :status => :unauthorized, :layout =>true end