From c8ef3bbd4e3c846d79573f1bdaae77822270a9e9 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Mon, 19 Sep 2016 22:38:48 -0400 Subject: [PATCH] Update invoice_controller.rb --- app/controllers/invoice_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/invoice_controller.rb b/app/controllers/invoice_controller.rb index 0ec2f79..c844611 100644 --- a/app/controllers/invoice_controller.rb +++ b/app/controllers/invoice_controller.rb @@ -15,7 +15,7 @@ class InvoiceController < ApplicationController before_filter :require_user skip_before_filter :verify_authenticity_token, :check_if_login_required, :only => [:show] if authorized - def authorized + def self.authorized session[:token].nil? end