liquid_feedback_frontend
changeset 308:aebddf876f67
Changed two links from area/list to unit/show
author | bsw |
---|---|
date | Sun Feb 26 22:29:52 2012 +0100 (2012-02-26) |
parents | f75811cd269e |
children | c695e2e2bb87 |
files | app/main/_filter/21_auth.lua app/main/member/_area_list.lua |
line diff
1.1 --- a/app/main/_filter/21_auth.lua Sun Feb 26 22:29:23 2012 +0100 1.2 +++ b/app/main/_filter/21_auth.lua Sun Feb 26 22:29:52 2012 +0100 1.3 @@ -38,10 +38,10 @@ 1.4 end 1.5 1.6 if config.public_access and not app.session.member_id and auth_needed and request.get_module() == "index" and request.get_view() == "index" then 1.7 - if not config.single_unit_id then 1.8 + if config.single_unit_id then 1.9 + request.redirect{ module = "unit", view = "show", id = config.single_unit_id } 1.10 + else 1.11 request.redirect{ module = "unit", view = "list" } 1.12 - else 1.13 - request.redirect{ module = "area", view = "list" } 1.14 end 1.15 return 1.16 end
2.1 --- a/app/main/member/_area_list.lua Sun Feb 26 22:29:23 2012 +0100 2.2 +++ b/app/main/member/_area_list.lua Sun Feb 26 22:29:52 2012 +0100 2.3 @@ -27,7 +27,7 @@ 2.4 slot.put(" ") 2.5 ui.link{ 2.6 text = _"Show all areas of this unit", 2.7 - module = "area", view = "list", params = { unit_id = unit.id } 2.8 + module = "unit", view = "show", id = unit.id 2.9 } 2.10 end 2.11 slot.put("<br />")