Merge pull request #9959 from demarches-simplifiees/manager-dossiers-invites

ETQ super admin je peux voir les dossiers sur lesquels un utilisateur est invité
This commit is contained in:
Eric Leroy-Terquem 2024-02-02 13:03:52 +00:00 committed by GitHub
commit ee167c0958
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -16,7 +16,8 @@ class UserDashboard < Administrate::BaseDashboard
blocked_at: Field::DateTime,
blocked_reason: Field::String,
current_sign_in_at: Field::DateTime,
dossiers: Field::HasMany
dossiers: Field::HasMany,
dossiers_invites: Field::HasMany
}.freeze
# COLLECTION_ATTRIBUTES
@ -34,6 +35,7 @@ class UserDashboard < Administrate::BaseDashboard
# an array of attributes that will be displayed on the model's show page.
SHOW_PAGE_ATTRIBUTES = [
:dossiers,
:dossiers_invites,
:id,
:email,
:confirmed?,