# HG changeset patch # User bsw # Date 1325211291 -3600 # Node ID 52b125fada5ba753b33131018ac6cd7ae383a478 # Parent e3613831cd1e8b530f922e3bed560d1fe7101e02 Show unit delegation button only for logged in users diff -r e3613831cd1e -r 52b125fada5b app/main/area/list.lua --- a/app/main/area/list.lua Fri Dec 30 03:13:10 2011 +0100 +++ b/app/main/area/list.lua Fri Dec 30 03:14:51 2011 +0100 @@ -24,11 +24,13 @@ util.help("area.list", _"Area list") -execute.view{ - module = "delegation", - view = "_show_box", - params = { unit_id = unit_id } -} +if app.session.member_id then + execute.view{ + module = "delegation", + view = "_show_box", + params = { unit_id = unit_id } + } +end execute.view{