fix incorrect set operator in check if PointLocation is reachable

This commit is contained in:
Laura Klünder 2016-12-24 02:16:35 +01:00
parent 3f3b868e8a
commit d4d42f46e1

View file

@ -305,7 +305,7 @@ class PointLocation(Location):
point = graph.get_nearest_point(self.level, self.x, self.y)
if point is None or (':nonpublic' in point.arealocations and self.request.c3nav_full_access and
not len(set(self.request.c3nav_access_list) - set(point.arealocations))):
not len(set(self.request.c3nav_access_list) & set(point.arealocations))):
return _('Unreachable Coordinates'), ''
locations = sorted(AreaLocation.objects.filter(name__in=point.arealocations, can_describe=True),