liquid_feedback_frontend
diff app/main/suggestion/_suggestion.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 | de6b80867eb7 |
line diff
1.1 --- a/app/main/suggestion/_suggestion.lua Wed Mar 31 17:50:32 2010 +0200 1.2 +++ b/app/main/suggestion/_suggestion.lua Sun Apr 04 22:05:11 2010 +0200 1.3 @@ -5,7 +5,11 @@ 1.4 record = suggestion, 1.5 readonly = true, 1.6 content = function() 1.7 - ui.field.text{ label = _"Author", value = suggestion.author.name } 1.8 + if app.session.member_id or config.public_access == "pseudonym" then 1.9 + ui.field.text{ label = _"Author", value = suggestion.author.name } 1.10 + else 1.11 + ui.field.text{ label = _"Author", value = _"[not displayed public]" } 1.12 + end 1.13 ui.field.text{ label = _"Title", name = "name" } 1.14 ui.container{ 1.15 attr = { class = "suggestion_content wiki" },