# HG changeset patch # User bsw # Date 1340141840 -7200 # Node ID b8e72db6dd0dd892cc219bc8a83351d8c08884f4 # Parent 1b799fcdae3194779b0aca9b58adc5793aaae52b Fixed usage of wrong variable diff -r 1b799fcdae31 -r b8e72db6dd0d app/main/issue/_show.lua --- a/app/main/issue/_show.lua Tue Jun 19 23:35:10 2012 +0200 +++ b/app/main/issue/_show.lua Tue Jun 19 23:37:20 2012 +0200 @@ -131,7 +131,7 @@ end end - if not issue.closed and app.session.member_id and app.session.member:has_voting_right_for_unit_id(issue.area.unit) then + if not issue.closed and app.session.member_id and app.session.member:has_voting_right_for_unit_id(issue.area.unit_id) then if issue.member_info.own_delegation_scope ~= "issue" then links[#links+1] = { text = _"Delegate issue", module = "delegation", view = "show", params = { issue_id = issue.id } } else