From 357e5d4490a49384695ed164505da4692d5c4818 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Fri, 2 Sep 2016 11:14:01 -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 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