liquid_feedback_frontend
changeset 1587:d5c5bf6bfda5
Show action element in issues only if necessary
author | bsw |
---|---|
date | Wed Jan 27 09:57:10 2021 +0100 (2021-01-27) |
parents | 1c21a43ef121 |
children | 5a43c0d21825 |
files | app/main/issue/_list.lua |
line diff
1.1 --- a/app/main/issue/_list.lua Tue Jan 26 19:15:35 2021 +0100 1.2 +++ b/app/main/issue/_list.lua Wed Jan 27 09:57:10 2021 +0100 1.3 @@ -286,7 +286,12 @@ 1.4 end 1.5 end } 1.6 end 1.7 - if app.session.member_id then 1.8 + if 1.9 + app.session.member_id and ( 1.10 + (not issue.fully_frozen and app.session.member:has_initiative_right_for_unit_id(issue.area.unit_id)) 1.11 + or (issue.fully_frozen and app.session.member:has_voting_right_for_unit_id(issue.area.unit_id)) 1.12 + ) 1.13 + then 1.14 ui.container{ attr = { class = "mdl-card__actions mdl-card--border" }, content = function() 1.15 execute.view{ 1.16 module = "delegation", view = "_info", params = {