# HG changeset patch # User bsw # Date 1605089519 -3600 # Node ID 32b9e4070777e52e585ff750c44664909d290bad # Parent 473d372c6ec7d57c97b08688a8bb892507dbd0f2 Do not show login link when logged in for units without privileges diff -r 473d372c6ec7 -r 32b9e4070777 app/main/unit/_sidebar_whatcanido.lua --- a/app/main/unit/_sidebar_whatcanido.lua Wed Nov 11 11:07:17 2020 +0100 +++ b/app/main/unit/_sidebar_whatcanido.lua Wed Nov 11 11:11:59 2020 +0100 @@ -86,11 +86,13 @@ else ui.container { attr = { class = "mdl-card__content mdl-card--border" }, content = function () ui.tag{ content = _"You are not entitled to vote in this unit" } - ui.tag{ tag = "ul", content = function() - ui.tag{ tag = "li", content = function() - ui.link{ module = "index", view = "login", content = _"Login" } + if not app.session.member_id then + ui.tag{ tag = "ul", content = function() + ui.tag{ tag = "li", content = function() + ui.link{ module = "index", view = "login", content = _"Login" } + end } end } - end } + end end } end