# HG changeset patch # User bsw # Date 1632739447 -7200 # Node ID f41f5c5f8fa20a1ae02ecd48886b04899b41b44d # Parent 0a3cce889a7577f94909f440cf9e331bae4c6c51 User cannot be not entitled to vote in root level diff -r 0a3cce889a75 -r f41f5c5f8fa2 app/main/index/_sidebar_whatcanido.lua --- a/app/main/index/_sidebar_whatcanido.lua Mon Sep 27 12:43:08 2021 +0200 +++ b/app/main/index/_sidebar_whatcanido.lua Mon Sep 27 12:44:07 2021 +0200 @@ -83,16 +83,12 @@ end if not app.session.member then ui.container { attr = { class = "mdl-card__content mdl-card--border" }, content = function () - if not app.session.member_id then - ui.tag{ content = _"Login to participate" } - ui.tag{ tag = "ul", content = function() - ui.tag{ tag = "li", content = function() - ui.link{ module = "index", view = "login", content = _"Login" } - end } + ui.tag{ content = _"Login to participate" } + ui.tag{ tag = "ul", content = function() + ui.tag{ tag = "li", content = function() + ui.link{ module = "index", view = "login", content = _"Login" } end } - else - ui.tag{ content = _"You are not entitled to vote in this unit" } - end + end } end } end if not config.voting_only then