liquid_feedback_frontend
diff app/main/initiative/show_partial.lua @ 51:0849be391140
Public read access; Read-only API for initiatives; Prepared integration of OpenID
author | bsw |
---|---|
date | Sun Apr 04 22:05:11 2010 +0200 (2010-04-04) |
parents | 00d1004545f1 |
children |
line diff
1.1 --- a/app/main/initiative/show_partial.lua Wed Mar 31 17:50:32 2010 +0200 1.2 +++ b/app/main/initiative/show_partial.lua Sun Apr 04 22:05:11 2010 +0200 1.3 @@ -7,7 +7,10 @@ 1.4 end 1.5 1.6 -- TODO performance 1.7 -local initiator = Initiator:by_pk(initiative.id, app.session.member.id) 1.8 +local initiator 1.9 +if app.session.member_id then 1.10 + initiator = Initiator:by_pk(initiative.id, app.session.member.id) 1.11 +end 1.12 1.13 ui.partial{ 1.14 module = "initiative",