Merge pull request #262 from jmmastey/fix-pto-check

bug(pto): fix issue where not having a PTO record causes the app to barf
This commit is contained in:
Ken Johnson
2017-09-18 14:55:20 -04:00
committed by GitHub
+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