liquid_feedback_frontend
diff app/main/initiative/_show.lua @ 813:ea2449916c12
Cleaned up public access levels
author | bsw |
---|---|
date | Fri Jul 06 13:58:20 2012 +0200 (2012-07-06) |
parents | 161cebfc44d4 |
children | ea3d3757ddc3 |
line diff
1.1 --- a/app/main/initiative/_show.lua Fri Jul 06 13:34:02 2012 +0200 1.2 +++ b/app/main/initiative/_show.lua Fri Jul 06 13:58:20 2012 +0200 1.3 @@ -64,14 +64,14 @@ 1.4 else 1.5 ui.container{ attr = { class = "title" }, content = text } 1.6 end 1.7 - if app.session.member_id or config.public_access == "pseudonym" or config.public_access == "full" then 1.8 + if app.session:has_access("authors_pseudonymous") then 1.9 ui.container{ attr = { class = "content" }, content = function() 1.10 ui.tag{ 1.11 attr = { class = "initiator_names" }, 1.12 content = function() 1.13 for i, initiator in ipairs(initiators) do 1.14 slot.put(" ") 1.15 - if app.session.member_id or config.public_access == "full" then 1.16 + if app.session:has_access("all_pseudonymous") then 1.17 ui.link{ 1.18 content = function () 1.19 execute.view{ 1.20 @@ -421,7 +421,7 @@ 1.21 } 1.22 1.23 1.24 - if config.public_access == "full" or app.session.member_id then 1.25 + if app.session:has_access("all_pseudonymous") then 1.26 if initiative.issue.ranks_available then 1.27 local members_selector = initiative.issue:get_reference_selector("direct_voters") 1.28 :left_join("vote", nil, { "vote.initiative_id = ? AND vote.member_id = member.id", initiative.id })