Skip to content
Snippets Groups Projects
Commit 25ef46cd authored by Branson Craig Stephens's avatar Branson Craig Stephens
Browse files

Fixed bug with exposed neighbors.

parent 69832505
No related branches found
No related tags found
No related merge requests found
......@@ -320,7 +320,7 @@ def view(request, event):
context['eventdesc'] = get_file(event, "event.log")
context['userdesc'] = get_file(event, "user.log")
context['nearby'] = [(e.gpstime - event.gpstime, e)
for e in event.neighbors()]
for e in filter_events_for_user(event.neighbors(), request.user, 'view')]
# context['skyalert_authorized'] = skyalert_authorized(request)
# context['groups'] = [g.name for g in EMGroup.objects.all()]
context['groups'] = [g.name for g in EMGroup.objects.order_by('name')]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment