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