liquid_feedback_frontend

changeset 1437:9d15d509b5f6

Fixed disable delegations and update member without login name
author bsw
date Wed Oct 17 14:11:10 2018 +0200 (2018-10-17)
parents 7ab60da388fe
children d55f506f032b
files app/main/admin/_action/member_update.lua app/main/issue/_sidebar_whatcanido.lua
line diff
     1.1 --- a/app/main/admin/_action/member_update.lua	Tue Oct 16 14:36:07 2018 +0200
     1.2 +++ b/app/main/admin/_action/member_update.lua	Wed Oct 17 14:11:10 2018 +0200
     1.3 @@ -27,8 +27,10 @@
     1.4    member.active = false
     1.5  end
     1.6  local login = param.get("login")
     1.7 -if login then
     1.8 +if login and #login > 0 then
     1.9    member.login = login
    1.10 +else
    1.11 +  member.login = nil
    1.12  end
    1.13  local name = param.get("name")
    1.14  if name then
     2.1 --- a/app/main/issue/_sidebar_whatcanido.lua	Tue Oct 16 14:36:07 2018 +0200
     2.2 +++ b/app/main/issue/_sidebar_whatcanido.lua	Wed Oct 17 14:11:10 2018 +0200
     2.3 @@ -256,7 +256,7 @@
     2.4        end }
     2.5      end
     2.6      
     2.7 -    if not config.disable_delegations and privileged_to_vote and not issue.closed and not issue.fully_frozen then
     2.8 +    if privileged_to_vote and not issue.closed and not issue.fully_frozen then
     2.9        if issue.member_info.own_participation then
    2.10          ui.container { attr = { class = "mdl-card__content mdl-card--border" }, content = function ()
    2.11            --[[

Impressum / About Us