Skip to content

Commit

Permalink
Check privacy when adding responses to request
Browse files Browse the repository at this point in the history
  • Loading branch information
joelbcastillo committed Mar 19, 2016
1 parent 7b87df2 commit 576264f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion public_records_portal/prr.py
Original file line number Diff line number Diff line change
Expand Up @@ -1111,7 +1111,8 @@ def get_responses_chronologically(req):
else:
responses.append(ResponsePresenter(note=note))
for record in req.records:
responses.append(ResponsePresenter(record=record))
if record.privacy == False:
responses.append(ResponsePresenter(record=record))
if not responses:
return responses
responses.sort(key=lambda x: x.date(), reverse=True)
Expand Down

0 comments on commit 576264f

Please sign in to comment.