# HG changeset patch # User bsw # Date 1632400218 -7200 # Node ID 97ff2a26c84ea2183ece0490e8d33d6c390f7d8c # Parent bca6a066d42917413c3baa987e0c9a6122f8013f Fixed area without unit in single_unit mode diff -r bca6a066d429 -r 97ff2a26c84e app/main/index/index.lua --- a/app/main/index/index.lua Thu Sep 23 14:29:39 2021 +0200 +++ b/app/main/index/index.lua Thu Sep 23 14:30:18 2021 +0200 @@ -26,7 +26,7 @@ if area_id then area = Area:by_id(area_id) - if not area or unit and 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