demarches-normaliennes/app/models
Pierre de La Morinerie a8354bd103 dossiers: unify deletion of dossiers between manager and user
The code paths for deleting a dossier were different, depending on
whether the dossier was deleted by the user, or from the Manager.

This commit unifies the two code paths into one.

This has the effect of:

- An operation log is now recorded when an user deletes its own dossier;
- Gestionnaires are now notified even when the dossier is deleted from
  the Manager;
- The `support:delete_user_account` task now requires the email address
  of the author.
2019-07-16 16:22:20 +02:00
..
champs champs: put champ label in numeric fields validation messages 2019-07-11 15:12:48 +02:00
concerns Before save copy body in rich_body 2019-07-03 13:15:49 +02:00
mails Use enum to the fullest with Dossier.states 2018-08-29 17:31:08 +02:00
types_de_champ [Fix #3578] No tags for champs that cannot have user input anyway 2019-03-11 10:26:27 +01:00
.keep First Commit 2015-08-10 11:05:06 +02:00
administrateur.rb Fix administration page 2019-03-12 15:34:30 +01:00
administrateurs_procedure.rb [Ref #1626] Add the administrateurs_procedures table and associations 2018-03-23 11:40:03 +01:00
administration.rb An admin has always a gestionnaire role 2018-11-13 10:41:45 +01:00
application_record.rb Bootstrap Action Cable and Unicorn 2016-12-22 21:49:31 +01:00
assign_to.rb Notification: add gestionnaire.procedures_with_email_notifications scope 2019-03-18 16:19:36 +01:00
attestation.rb [#1563] Remove attestation mail attachment 2018-05-09 10:42:40 +02:00
attestation_template.rb Time.now => Time.zone.now 2018-10-26 10:10:20 +00:00
avis.rb Export dossiers v2 2019-07-02 14:20:29 +02:00
bill_signature.rb Add BillSignature Model 2019-06-17 16:16:28 +02:00
champ.rb models: fix touch not propagating when using nested attributes 2019-06-17 13:44:07 +02:00
commentaire.rb Refactor message attachements to use active_storage 2019-07-10 15:35:29 +02:00
current.rb Enable flipflop for instructeurs 2019-03-12 12:14:34 +01:00
deleted_dossier.rb Enforce Timezone rule in Rubocop 2019-02-18 16:19:42 +01:00
demande.rb [fix #1601] show pipedrive demandes in manager 2018-03-22 15:37:16 +01:00
dossier.rb dossiers: unify deletion of dossiers between manager and user 2019-07-16 16:22:20 +02:00
dossier_operation_log.rb [fix #3683] Dossier: add repasser_en_instruction! 2019-07-02 18:40:20 +02:00
drop_down_list.rb Add new admin procedure update action 2019-01-17 11:20:31 +01:00
entreprise.rb Remove entreprise and rna_information models 2018-05-24 17:54:51 +02:00
etablissement.rb Export dossiers v2 2019-07-02 14:20:29 +02:00
exercice.rb Remove unused alias 2018-05-24 17:54:51 +02:00
feedback.rb Add AR validation for Feedback rating 2018-08-28 10:36:36 +02:00
follow.rb Add “previously followed” dossiers and gestionnaires 2019-06-12 17:33:53 +02:00
france_connect_information.rb Remove the mandataire_social guess 2018-03-20 16:09:00 +01:00
france_connect_particulier_client.rb FC initializers: remove Hashie 2018-01-15 17:08:38 +01:00
geo_area.rb Add user_geo_area do champ carte 2018-11-20 10:53:14 +01:00
gestionnaire.rb Enable the Rails/InverseOf cop and add missing inverse_of 2019-06-17 13:44:07 +02:00
individual.rb Individual: remove birthdate proxy 2018-04-04 15:27:30 +02:00
invite.rb [Fix #1619] Do not consider invitations to deleted dossiers 2018-03-15 11:32:21 +01:00
module_api_carto.rb Remove unused carto models 2018-11-27 16:11:25 +01:00
piece_justificative.rb models: fix touch not propagating when using nested attributes 2019-06-17 13:44:07 +02:00
procedure.rb procedure: remove individual_with_siret column 2019-07-11 15:57:46 +02:00
procedure_overview.rb DateTime.now => Time.zone.now 2018-10-26 10:10:20 +00:00
procedure_presentation.rb procedure: remove individual_with_siret 2019-07-11 11:58:21 +02:00
service.rb [fix #3315] Migrate service organisme 2019-02-18 16:50:44 +01:00
siret.rb Do one thing per line 2018-10-01 16:15:46 +02:00
trusted_device_token.rb TrustedDeviceToken: valid for one week 2019-02-18 17:20:49 +01:00
type_de_champ.rb Enable the Rails/InverseOf cop and add missing inverse_of 2019-06-17 13:44:07 +02:00
type_de_piece_justificative.rb Order types de champ in scope 2018-12-20 14:14:15 +01:00
user.rb Remove dead code 2018-12-19 14:59:15 +01:00