mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-09 17:34:23 -05:00
Update customers_controller.rb
This commit is contained in:
@@ -105,6 +105,9 @@ class CustomersController < ApplicationController
|
|||||||
|
|
||||||
# Customer view for an issue
|
# Customer view for an issue
|
||||||
def view
|
def view
|
||||||
|
|
||||||
|
User.current = User.find_by lastname: 'Anonymous'
|
||||||
|
|
||||||
@token = CustomerToken.where("token = ? and expires_at > ?", params[:token], Time.now)
|
@token = CustomerToken.where("token = ? and expires_at > ?", params[:token], Time.now)
|
||||||
@token = @token.first
|
@token = @token.first
|
||||||
if @token
|
if @token
|
||||||
|
|||||||
Reference in New Issue
Block a user