liquid_feedback_frontend
diff app/main/area/list.lua @ 249:52b125fada5b
Show unit delegation button only for logged in users
author | bsw |
---|---|
date | Fri Dec 30 03:14:51 2011 +0100 (2011-12-30) |
parents | e3613831cd1e |
children | 743194cbdd89 |
line diff
1.1 --- a/app/main/area/list.lua Fri Dec 30 03:13:10 2011 +0100 1.2 +++ b/app/main/area/list.lua Fri Dec 30 03:14:51 2011 +0100 1.3 @@ -24,11 +24,13 @@ 1.4 1.5 util.help("area.list", _"Area list") 1.6 1.7 -execute.view{ 1.8 - module = "delegation", 1.9 - view = "_show_box", 1.10 - params = { unit_id = unit_id } 1.11 -} 1.12 +if app.session.member_id then 1.13 + execute.view{ 1.14 + module = "delegation", 1.15 + view = "_show_box", 1.16 + params = { unit_id = unit_id } 1.17 + } 1.18 +end 1.19 1.20 1.21 execute.view{