Merge pull request #10052 from tchak/fix-export-job
fix(export): do not crash when dossier user is deleted
This commit is contained in:
commit
792cfec32d
1 changed files with 1 additions and 0 deletions
|
@ -1387,6 +1387,7 @@ class Dossier < ApplicationRecord
|
||||||
end
|
end
|
||||||
|
|
||||||
def user_from_france_connect?
|
def user_from_france_connect?
|
||||||
|
return false if user_deleted?
|
||||||
user.france_connect_information.present?
|
user.france_connect_information.present?
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue