liquid_feedback_frontend
changeset 1622:72442abafb3c
Allow delegations when initiative right is given
author | bsw |
---|---|
date | Sat Feb 06 23:30:20 2021 +0100 (2021-02-06) |
parents | a17ad625ffbc |
children | 22398d337507 |
files | app/main/delegation/_action/update.lua |
line diff
1.1 --- a/app/main/delegation/_action/update.lua Sat Feb 06 22:44:34 2021 +0100 1.2 +++ b/app/main/delegation/_action/update.lua Sat Feb 06 23:30:20 2021 +0100 1.3 @@ -56,12 +56,18 @@ 1.4 check_unit_id = area.unit_id 1.5 end 1.6 1.7 - if trustee and not trustee:has_voting_right_for_unit_id(check_unit_id) then 1.8 + if trustee and not ( 1.9 + trustee:has_voting_right_for_unit_id(check_unit_id) 1.10 + or trustee:has_initiative_right_for_unit_id(check_unit_id) 1.11 + ) then 1.12 slot.put_into("error", _"Trustee has no voting right in this unit") 1.13 return false 1.14 end 1.15 1.16 - if not app.session.member:has_voting_right_for_unit_id(check_unit_id) then 1.17 + if not ( 1.18 + app.session.member:has_voting_right_for_unit_id(check_unit_id) 1.19 + or app.session.member:has_initiative_right_for_unit_id(check_unit_id) 1.20 + ) then 1.21 return execute.view { module = "index", view = "403" } 1.22 end 1.23