Anonymisation de l'instructeur dans la messagerie
This commit is contained in:
parent
23316b6e4e
commit
77101208a4
3 changed files with 45 additions and 3 deletions
|
@ -34,7 +34,11 @@ class Commentaire < ApplicationRecord
|
|||
|
||||
def redacted_email
|
||||
if instructeur.present?
|
||||
instructeur.email.split('@').first
|
||||
if Flipper.enabled?(:hide_instructeur_email, dossier.procedure)
|
||||
"Instructeur n° #{instructeur.id}"
|
||||
else
|
||||
instructeur.email.split('@').first
|
||||
end
|
||||
else
|
||||
email
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue