Skip to content

Commit

Permalink
Merge pull request #78 from CityOfNewYork/hotfix/OP-558
Browse files Browse the repository at this point in the history
Hotifx/OP-558: Check privacy when adding responses to request
  • Loading branch information
joelbcastillo committed Mar 19, 2016
2 parents 7b87df2 + 576264f commit 64b9268
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 64b9268

Please sign in to comment.