# HG changeset patch # User bsw # Date 1539778270 -7200 # Node ID 9d15d509b5f69a5d006c812cee07b381560ccb7d # Parent 7ab60da388fe8d29bbd3af3f27797f1b9514c0c0 Fixed disable delegations and update member without login name diff -r 7ab60da388fe -r 9d15d509b5f6 app/main/admin/_action/member_update.lua --- a/app/main/admin/_action/member_update.lua Tue Oct 16 14:36:07 2018 +0200 +++ b/app/main/admin/_action/member_update.lua Wed Oct 17 14:11:10 2018 +0200 @@ -27,8 +27,10 @@ member.active = false end local login = param.get("login") -if login then +if login and #login > 0 then member.login = login +else + member.login = nil end local name = param.get("name") if name then diff -r 7ab60da388fe -r 9d15d509b5f6 app/main/issue/_sidebar_whatcanido.lua --- a/app/main/issue/_sidebar_whatcanido.lua Tue Oct 16 14:36:07 2018 +0200 +++ b/app/main/issue/_sidebar_whatcanido.lua Wed Oct 17 14:11:10 2018 +0200 @@ -256,7 +256,7 @@ end } end - if not config.disable_delegations and privileged_to_vote and not issue.closed and not issue.fully_frozen then + if privileged_to_vote and not issue.closed and not issue.fully_frozen then if issue.member_info.own_participation then ui.container { attr = { class = "mdl-card__content mdl-card--border" }, content = function () --[[