# HG changeset patch # User bsw # Date 1330205373 -3600 # Node ID cb9ccdd024f243d4a46de536c1f7e084929492fe # Parent 774c0188a4a0071ed418ab1c148ea737423c9757 Do not check voting rights for virtual delegation target 'abandon' diff -r 774c0188a4a0 -r cb9ccdd024f2 app/main/delegation/_action/update.lua --- a/app/main/delegation/_action/update.lua Sat Feb 25 22:27:41 2012 +0100 +++ b/app/main/delegation/_action/update.lua Sat Feb 25 22:29:33 2012 +0100 @@ -34,7 +34,11 @@ else - local trustee = Member:by_id(trustee_id) + local trustee + + if trustee_id then + trustee = Member:by_id(trustee_id) + end local check_unit_id if unit_id then @@ -48,7 +52,7 @@ check_unit_id = area.unit_id end - if not trustee:has_voting_right_for_unit_id(check_unit_id) then + if trustee and not trustee:has_voting_right_for_unit_id(check_unit_id) then slot.put_into("error", _"Trustee has no voting right in this unit") return false end