bug(pto): fix issue where not having a PTO record causes the app to barf
closes #187
This commit is contained in:
@@ -40,7 +40,7 @@ class ApplicationController < ActionController::Base
|
|||||||
redirect = false
|
redirect = false
|
||||||
if current_user
|
if current_user
|
||||||
begin
|
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
|
redirect = true
|
||||||
end
|
end
|
||||||
rescue
|
rescue
|
||||||
|
|||||||
Reference in New Issue
Block a user