Commit ddd5cf28 authored by Mathieu Giraud's avatar Mathieu Giraud Committed by Vidjil Team
Browse files

vidjil_utils.py, anonymization: displays patient id for admins

parent 8288df77
...@@ -54,4 +54,8 @@ def anon(patient_id, user_id): ...@@ -54,4 +54,8 @@ def anon(patient_id, user_id):
ln = last_name ln = last_name
name = ln[:3] name = ln[:3]
# Admins also see the patient id
if auth.has_membership("admin"):
name += ' (%s)' % patient_id
return name return name
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment