now really fix information disclosure
This commit is contained in:
parent
63d50560ef
commit
affe2934ee
1 changed files with 1 additions and 1 deletions
|
@ -304,7 +304,7 @@ class PointLocation(Location):
|
|||
graph = Graph.load()
|
||||
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
|
||||
if point is None or (':nonpublic' in point.arealocations and not self.request.c3nav_full_access and
|
||||
not len(set(self.request.c3nav_access_list) & set(point.arealocations))):
|
||||
return _('Unreachable Coordinates'), ''
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue