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:
@@ -94,7 +94,7 @@ class CustomersController < ApplicationController
|
|||||||
def view
|
def view
|
||||||
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
|
||||||
render :partial => "issues/show", locals: [issue: Issue.find token.issue_id]#, :flash => {:notice => token.issue_id}
|
@issue = Issue.find token.issue_id
|
||||||
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