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:
@@ -108,6 +108,7 @@ class CustomersController < ApplicationController
|
||||
token = CustomerToken.where("token = ? and expires_at > ?", params[:token], Time.now)
|
||||
if token.first
|
||||
User.current = User.find_by lastname: 'Anonymous'
|
||||
User.current.logged = true
|
||||
@issue = Issue.find token.first.issue_id
|
||||
@journals = @issue.journals.
|
||||
preload(:details).
|
||||
|
||||
Reference in New Issue
Block a user