liquid_feedback_frontend

diff app/main/suggestion/_action/add.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 701a5cf6b067
children
line diff
     1.1 --- a/app/main/suggestion/_action/add.lua	Thu Jun 23 03:30:57 2016 +0200
     1.2 +++ b/app/main/suggestion/_action/add.lua	Sun Jul 15 14:07:29 2018 +0200
     1.3 @@ -6,7 +6,7 @@
     1.4  
     1.5  local initiative = Initiative:by_id(param.get("initiative_id", atom.integer))
     1.6  if not app.session.member:has_voting_right_for_unit_id(initiative.issue.area.unit_id) then
     1.7 -  error("access denied")
     1.8 +  return execute.view { module = "index", view = "403" }
     1.9  end
    1.10  
    1.11  
    1.12 @@ -27,7 +27,8 @@
    1.13    end
    1.14  end
    1.15  if not formatting_engine_valid then
    1.16 -  error("invalid formatting engine!")
    1.17 +  slot.put_into("error", "invalid formatting engine!")
    1.18 +  return false
    1.19  end
    1.20  
    1.21  if param.get("preview") then
    1.22 @@ -68,4 +69,4 @@
    1.23  
    1.24  opinion:save()
    1.25  
    1.26 -slot.put_into("notice", _"Your suggestion has been added")
    1.27 \ No newline at end of file
    1.28 +slot.put_into("notice", _"Your suggestion has been added")

Impressum / About Us