Update customers_controller.rb

This commit is contained in:
2016-09-02 10:54:58 -04:00
committed by GitHub
parent 126f4abe0a
commit 806b4719fe

View File

@@ -94,7 +94,7 @@ class CustomersController < ApplicationController
def view
token = CustomerToken.where("token = ? and expires_at > ?", params[:token], Time.now)
if token
@issue = Issue.find token.issue_id
@issue = Issue.find token.first.issue_id
else
render :file => "public/401.html.erb", :status => :unauthorized, :layout =>true
end