mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 17:04: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)
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user