liquid_feedback_frontend
changeset 1366:378c20a2e6f0
Update privilege of requested member
author | bsw |
---|---|
date | Mon Aug 06 14:18:15 2018 +0200 (2018-08-06) |
parents | c52286bd8d98 |
children | 5656b86cd2cf |
files | app/main/registration_admin/_action/update_verification.lua |
line diff
1.1 --- a/app/main/registration_admin/_action/update_verification.lua Mon Aug 06 14:15:58 2018 +0200 1.2 +++ b/app/main/registration_admin/_action/update_verification.lua Mon Aug 06 14:18:15 2018 +0200 1.3 @@ -13,14 +13,14 @@ 1.4 elseif field.name == "unit" then 1.5 value = string.gsub(value, "[^0-9]", "") 1.6 if old_verification_data.unit and old_verification_data.unit ~= "" then 1.7 - local old_unit_privilege = Privilege:by_pk(old_verification_data.unit, verification.verified_member_id) 1.8 + local old_unit_privilege = Privilege:by_pk(old_verification_data.unit, verification.requesting_member_id) 1.9 if old_unit_privilege then 1.10 old_unit_privilege:destroy() 1.11 end 1.12 end 1.13 if value ~= old_verification_data.unit and value ~= "" then 1.14 local unit_privilege = Privilege:new() 1.15 - unit_privilege.member_id = verification.verified_member_id 1.16 + unit_privilege.member_id = verification.requesting_member_id 1.17 unit_privilege.unit_id = tonumber(value) 1.18 unit_privilege.voting_right = true 1.19 unit_privilege.initiative_right = true