diff --git a/app/controllers/invoice_controller.rb b/app/controllers/invoice_controller.rb index 42308ef..f0b25e9 100644 --- a/app/controllers/invoice_controller.rb +++ b/app/controllers/invoice_controller.rb @@ -13,6 +13,7 @@ class InvoiceController < ApplicationController include AuthHelper before_filter :require_user + skip_before_filter :verify_authenticity_token, :check_if_login_required, :only => [:view] if session[:token] # # Downloads and forwards the invoice pdf