Add 'visible_by_user' - review PR

Co-authored-by: Paul Chavard <paul.chavard@beta.gouv.fr>
This commit is contained in:
Lisa Durand 2023-04-14 10:10:22 +02:00 committed by GitHub
parent b0df654346
commit 229ce67a5d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,7 +29,7 @@ module Users
@dossier_transfers = DossierTransfer.for_email(current_user.email).page(page)
@statut = statut(@user_dossiers, @dossiers_traites, @dossiers_invites, @dossiers_supprimes_recemment, @dossiers_supprimes_definitivement, @dossier_transfers, @dossiers_close_to_expiration, params[:statut])
@last_dossier_editable = current_user.dossiers.last_editable
@last_dossier_editable = current_user.dossiers.visible_by_user.last_editable
end
def show