Update invoice_controller.rb

This commit is contained in:
2016-09-19 22:44:52 -04:00
committed by GitHub
parent c8ef3bbd4e
commit 9cfab7bea1

View File

@@ -13,11 +13,7 @@ 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 authorized skip_before_filter :verify_authenticity_token, :check_if_login_required, :only => [:show], :if -> { session[:token] }
def self.authorized
session[:token].nil?
end
# #
# Downloads and forwards the invoice pdf # Downloads and forwards the invoice pdf