fix incorrect set operator in check if PointLocation is reachable
This commit is contained in:
parent
3f3b868e8a
commit
d4d42f46e1
1 changed files with 1 additions and 1 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue