mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 08:54:23 -05:00
Update invoice_controller.rb
This commit is contained in:
@@ -13,7 +13,11 @@ class InvoiceController < ApplicationController
|
|||||||
include AuthHelper
|
include AuthHelper
|
||||||
|
|
||||||
before_filter :require_user
|
before_filter :require_user
|
||||||
skip_before_filter :verify_authenticity_token, :check_if_login_required, :only => [:show] if session[:token]
|
skip_before_filter :verify_authenticity_token, :check_if_login_required, :only => [:show] if authorized
|
||||||
|
|
||||||
|
def authorized
|
||||||
|
session[:token].nil?
|
||||||
|
end
|
||||||
|
|
||||||
#
|
#
|
||||||
# Downloads and forwards the invoice pdf
|
# Downloads and forwards the invoice pdf
|
||||||
|
|||||||
Reference in New Issue
Block a user