Skip to content

Commit

Permalink
analyses follow phi rules
Browse files Browse the repository at this point in the history
  • Loading branch information
hkethi002 committed Aug 18, 2017
1 parent 3654b0a commit 19177b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/auth/containerauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ def f(method, _id=None, payload=None):
result = exec_op(method, _id=_id, payload=payload)

if method == 'GET' and exec_op is not noop:
if not handler.phi_get_access(handler.uid, parent_container) > INTEGER_PERMISSIONS['no-phi-ro']:
handler.phi = _get_access(handler.uid, parent_container) > INTEGER_PERMISSIONS['no-phi-ro']
if not handler.phi:
if handler.is_true('phi'):
handler.abort(403, "User not authorized to view PHI fields.")
result = phi_scrub(result)
Expand Down

0 comments on commit 19177b4

Please sign in to comment.