# HG changeset patch # User bsw # Date 1330291792 -3600 # Node ID aebddf876f67d599d8fa58f89751f3196f771e21 # Parent f75811cd269ea30e7380f71c738d2acfd3d49a74 Changed two links from area/list to unit/show diff -r f75811cd269e -r aebddf876f67 app/main/_filter/21_auth.lua --- a/app/main/_filter/21_auth.lua Sun Feb 26 22:29:23 2012 +0100 +++ b/app/main/_filter/21_auth.lua Sun Feb 26 22:29:52 2012 +0100 @@ -38,10 +38,10 @@ end if config.public_access and not app.session.member_id and auth_needed and request.get_module() == "index" and request.get_view() == "index" then - if not config.single_unit_id then + if config.single_unit_id then + request.redirect{ module = "unit", view = "show", id = config.single_unit_id } + else request.redirect{ module = "unit", view = "list" } - else - request.redirect{ module = "area", view = "list" } end return end diff -r f75811cd269e -r aebddf876f67 app/main/member/_area_list.lua --- a/app/main/member/_area_list.lua Sun Feb 26 22:29:23 2012 +0100 +++ b/app/main/member/_area_list.lua Sun Feb 26 22:29:52 2012 +0100 @@ -27,7 +27,7 @@ slot.put(" ") ui.link{ text = _"Show all areas of this unit", - module = "area", view = "list", params = { unit_id = unit.id } + module = "unit", view = "show", id = unit.id } end slot.put("
")