# HG changeset patch # User bsw # Date 1331395750 -3600 # Node ID 2113a6bb597dc5796ec810b8ae88eb00861fbdb1 # Parent 699b9fa7bc364048687ad36dc56a1b6d7a2c4a7e Show private nav items only when logged in diff -r 699b9fa7bc36 -r 2113a6bb597d app/main/_filter_view/30_navigation.lua --- a/app/main/_filter_view/30_navigation.lua Sat Mar 10 16:57:49 2012 +0100 +++ b/app/main/_filter_view/30_navigation.lua Sat Mar 10 17:09:10 2012 +0100 @@ -9,6 +9,9 @@ module = 'index', view = 'index' } + end + + if app.session.member_id then ui.link{ content = _"Units", module = 'unit', @@ -24,12 +27,6 @@ module = 'contact', view = 'list' } - else - ui.link{ - text = _"Login", - module = 'index', - view = 'index' - } end if config.public_access and app.session.member == nil then