mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-09 01:14:23 -05:00
Update customers_controller.rb
This commit is contained in:
@@ -95,6 +95,7 @@ class CustomersController < ApplicationController
|
|||||||
token = CustomerToken.where("token = ? and expires_at > ?", params[:token], Time.now)
|
token = CustomerToken.where("token = ? and expires_at > ?", params[:token], Time.now)
|
||||||
if token
|
if token
|
||||||
@issue = Issue.find token.first.issue_id
|
@issue = Issue.find token.first.issue_id
|
||||||
|
render :template => 'issues/show'
|
||||||
else
|
else
|
||||||
render :file => "public/401.html.erb", :status => :unauthorized, :layout =>true
|
render :file => "public/401.html.erb", :status => :unauthorized, :layout =>true
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user