From 5814740a5db7000dbfd90a0513af00d6297e7656 Mon Sep 17 00:00:00 2001 From: Ricky Barrette Date: Sun, 13 Mar 2022 17:49:58 -0400 Subject: [PATCH] Allow customer to view estimate --- app/controllers/estimate_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/estimate_controller.rb b/app/controllers/estimate_controller.rb index e88bcb8..cfab872 100644 --- a/app/controllers/estimate_controller.rb +++ b/app/controllers/estimate_controller.rb @@ -12,7 +12,8 @@ class EstimateController < ApplicationController include AuthHelper - before_action :require_user + before_action :require_user, :unless => proc {|c| session[:token].nil? } + skip_before_action :verify_authenticity_token, :check_if_login_required, :unless => proc {|c| session[:token].nil? } # # Downloads and forwards the estimate pdf