liquid_feedback_frontend
diff app/main/index/index.lua @ 1504:2a0d86117d54
Added hidden and role units
author | bsw |
---|---|
date | Fri Jul 31 00:18:55 2020 +0200 (2020-07-31) |
parents | 32cc544d5a5b |
children | ec0d69b4bb20 |
line diff
1.1 --- a/app/main/index/index.lua Thu Jul 30 23:15:49 2020 +0200 1.2 +++ b/app/main/index/index.lua Fri Jul 31 00:18:55 2020 +0200 1.3 @@ -19,6 +19,11 @@ 1.4 1.5 if unit_id then 1.6 unit = Unit:by_id(unit_id) 1.7 + if not unit or unit.attr.hidden then 1.8 + execute.view { module = "index", view = "404" } 1.9 + request.set_status("404 Not Found") 1.10 + return 1.11 + end 1.12 end 1.13 1.14 if area_id then