diff --git a/app/models/user.rb b/app/models/user.rb index 7de9ff077..2eb549880 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -53,7 +53,7 @@ class User < ApplicationRecord accepts_nested_attributes_for :france_connect_information - default_scope { eager_load(:instructeur, :administrateur) } + default_scope { eager_load(:instructeur, :administrateur, :expert) } before_validation -> { sanitize_email(:email) }