bug(pto): fix issue where not having a PTO record causes the app to barf

closes #187
This commit is contained in:
Joseph Mastey
2017-09-18 12:43:47 -05:00
parent ff7b1f11a7
commit 11ab30eb90
+1 -1
View File
@@ -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