From 11ab30eb905b3090ddacf9297a3aa9440fc42ecf Mon Sep 17 00:00:00 2001 From: Joseph Mastey Date: Mon, 18 Sep 2017 12:43:47 -0500 Subject: [PATCH] bug(pto): fix issue where not having a PTO record causes the app to barf closes #187 --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 4f08d34..102b900 100755 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -40,7 +40,7 @@ class ApplicationController < ActionController::Base redirect = false if current_user begin - if !(current_user.retirement || current_user.paid_time_off.schedule || current_user.paid_time_off || current_user.work_info || current_user.performance) + if !(current_user.retirement || current_user.paid_time_off || current_user.paid_time_off.schedule || current_user.work_info || current_user.performance) redirect = true end rescue