Merge pull request #10052 from tchak/fix-export-job

fix(export): do not crash when dossier user is deleted
This commit is contained in:
Paul Chavard 2024-02-29 17:06:32 +00:00 committed by GitHub
commit 792cfec32d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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