Commit 6727f690 authored by HERBERT Ryan's avatar HERBERT Ryan
Browse files

log.py log anon permission check

Removed a permission check on patient logging which was not only
redundant but also introduced a bug
parent 987b107f
...@@ -7,8 +7,7 @@ if request.env.http_origin: ...@@ -7,8 +7,7 @@ if request.env.http_origin:
def anon_names(data): def anon_names(data):
for row in data: for row in data:
if not auth.can_view_patient_info(row.id): row.name = vidjil_utils.anon_ids(row.id)
row.name = vidjil_utils.anon_ids(row.id)
return data return data
def get_data_list(table): def get_data_list(table):
......
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