liquid_feedback_frontend
diff app/main/index/search.lua @ 813:ea2449916c12
Cleaned up public access levels
author | bsw |
---|---|
date | Fri Jul 06 13:58:20 2012 +0200 (2012-07-06) |
parents | 344e5fdce8c9 |
children | 3e8b50739577 |
line diff
1.1 --- a/app/main/index/search.lua Fri Jul 06 13:34:02 2012 +0200 1.2 +++ b/app/main/index/search.lua Fri Jul 06 13:58:20 2012 +0200 1.3 @@ -15,7 +15,7 @@ 1.4 attr = { class = "vertical" }, 1.5 content = function() 1.6 1.7 - if app.session.member_id or config.public_access == "full" then 1.8 + if app.session:has_access("all_pseudonymous") then 1.9 ui.field.select{ 1.10 label = _"Search context", 1.11 name = "search_for", 1.12 @@ -38,7 +38,7 @@ 1.13 1.14 if search_string then 1.15 1.16 - if app.session.member_id or config.public_access == "full" then 1.17 + if app.session:has_access("all_pseudonymous") then 1.18 if search_for == "global" or search_for == "member" then 1.19 local members_selector = Member:get_search_selector(search_string) 1.20 execute.view{