liquid_feedback_frontend
changeset 1569:32b9e4070777
Do not show login link when logged in for units without privileges
author | bsw |
---|---|
date | Wed Nov 11 11:11:59 2020 +0100 (2020-11-11) |
parents | 473d372c6ec7 |
children | dcacc0b98d70 |
files | app/main/unit/_sidebar_whatcanido.lua |
line diff
1.1 --- a/app/main/unit/_sidebar_whatcanido.lua Wed Nov 11 11:07:17 2020 +0100 1.2 +++ b/app/main/unit/_sidebar_whatcanido.lua Wed Nov 11 11:11:59 2020 +0100 1.3 @@ -86,11 +86,13 @@ 1.4 else 1.5 ui.container { attr = { class = "mdl-card__content mdl-card--border" }, content = function () 1.6 ui.tag{ content = _"You are not entitled to vote in this unit" } 1.7 - ui.tag{ tag = "ul", content = function() 1.8 - ui.tag{ tag = "li", content = function() 1.9 - ui.link{ module = "index", view = "login", content = _"Login" } 1.10 + if not app.session.member_id then 1.11 + ui.tag{ tag = "ul", content = function() 1.12 + ui.tag{ tag = "li", content = function() 1.13 + ui.link{ module = "index", view = "login", content = _"Login" } 1.14 + end } 1.15 end } 1.16 - end } 1.17 + end 1.18 end } 1.19 end 1.20