# HG changeset patch # User bsw # Date 1632400179 -7200 # Node ID bca6a066d42917413c3baa987e0c9a6122f8013f # Parent f6ce58146d40e188a98091b5c14e9644db08dc54 Fixed area without unit in single_unit mode diff -r f6ce58146d40 -r bca6a066d429 app/main/index/index.lua --- a/app/main/index/index.lua Wed Sep 22 18:28:37 2021 +0200 +++ b/app/main/index/index.lua Thu Sep 23 14:29:39 2021 +0200 @@ -26,7 +26,7 @@ if area_id then area = Area:by_id(area_id) - if not area or area.unit_id ~= unit.id then + if not area or unit and area.unit_id ~= unit.id then execute.view { module = "index", view = "404" } request.set_status("404 Not Found") return