liquid_feedback_frontend

diff app/main/initiative/show_tab.lua @ 527:4cee33ad5e16

Completed support for config.public_access = "full"
author bsw
date Fri May 18 19:44:41 2012 +0200 (2012-05-18)
parents 63d6549cc00b
children 6ccab8039935
line diff
     1.1 --- a/app/main/initiative/show_tab.lua	Fri May 18 19:21:45 2012 +0200
     1.2 +++ b/app/main/initiative/show_tab.lua	Fri May 18 19:44:41 2012 +0200
     1.3 @@ -31,7 +31,7 @@
     1.4    }
     1.5  }
     1.6  
     1.7 -if app.session.member_id then
     1.8 +if config.public_access == "full" or app.session.member_id then
     1.9    if initiative.issue.ranks_available then
    1.10      tabs[#tabs+1] = {
    1.11        name = "voting",
    1.12 @@ -61,7 +61,7 @@
    1.13    }
    1.14  }
    1.15  
    1.16 -if app.session.member_id then
    1.17 +if config.public_access == "full" or app.session.member_id then
    1.18    local members_selector = initiative:get_reference_selector("supporting_members_snapshot")
    1.19              :join("issue", nil, "issue.id = direct_supporter_snapshot.issue_id")
    1.20              :join("direct_interest_snapshot", nil, "direct_interest_snapshot.event = issue.latest_snapshot_event AND direct_interest_snapshot.issue_id = issue.id AND direct_interest_snapshot.member_id = member.id")

Impressum / About Us