mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 08:54:23 -05:00
Update customers_controller.rb
This commit is contained in:
@@ -94,7 +94,7 @@ class CustomersController < ApplicationController
|
||||
def view
|
||||
token = CustomerToken.where("token = ? and expires_at > ?", params[:token], Time.now)
|
||||
if token
|
||||
render :partial => "issues/show", locals: [issue: Issue.find token.issue_id]#, :flash => {:notice => token.issue_id}
|
||||
@issue = Issue.find token.issue_id
|
||||
else
|
||||
render :file => "public/401.html.erb", :status => :unauthorized, :layout =>true
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user