Update invoice_controller.rb

This commit is contained in:
2016-09-19 22:49:06 -04:00
committed by GitHub
parent 9cfab7bea1
commit 52396eb384

View File

@@ -12,8 +12,8 @@ class InvoiceController < ApplicationController
include AuthHelper include AuthHelper
before_filter :require_user before_filter :require_user, :if -> { not session[:token] }
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, :if -> { not session[:token] }
# #
# Downloads and forwards the invoice pdf # Downloads and forwards the invoice pdf