liquid_feedback_frontend

diff app/main/delegation/_action/update.lua @ 1309:32cc544d5a5b

Cumulative patch for upcoming frontend version 4
author bsw/jbe
date Sun Jul 15 14:07:29 2018 +0200 (2018-07-15)
parents 403e8c211592
children 72442abafb3c
line diff
     1.1 --- a/app/main/delegation/_action/update.lua	Thu Jun 23 03:30:57 2016 +0200
     1.2 +++ b/app/main/delegation/_action/update.lua	Sun Jul 15 14:07:29 2018 +0200
     1.3 @@ -1,3 +1,7 @@
     1.4 +if config.disable_delegations then
     1.5 +  return
     1.6 +end
     1.7 +
     1.8  local truster_id = app.session.member.id
     1.9  
    1.10  local trustee_id = param.get("trustee_id", atom.integer)
    1.11 @@ -58,7 +62,7 @@
    1.12    end
    1.13  
    1.14    if not app.session.member:has_voting_right_for_unit_id(check_unit_id) then
    1.15 -    error("access denied")
    1.16 +    return execute.view { module = "index", view = "403" }
    1.17    end
    1.18  
    1.19    if not delegation then

Impressum / About Us