fix(export): avoid a crash when dossier user is deleted

This commit is contained in:
Paul Chavard 2024-02-29 11:21:32 +01:00
parent 0d40354298
commit 0721c98e65

View file

@ -1387,6 +1387,7 @@ class Dossier < ApplicationRecord
end
def user_from_france_connect?
return false if user_deleted?
user.france_connect_information.present?
end