liquid_feedback_frontend

diff app/main/interest/_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 701a5cf6b067
children 2f9e1e882de6
line diff
     1.1 --- a/app/main/interest/_action/update.lua	Thu Jun 23 03:30:57 2016 +0200
     1.2 +++ b/app/main/interest/_action/update.lua	Sun Jul 15 14:07:29 2018 +0200
     1.3 @@ -5,7 +5,7 @@
     1.4  local issue = Issue:new_selector():add_where{ "id = ?", issue_id }:for_share():single_object_mode():exec()
     1.5  
     1.6  if not app.session.member:has_voting_right_for_unit_id(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  if issue.closed then
    1.12 @@ -25,9 +25,9 @@
    1.13  if param.get("delete", atom.boolean) then
    1.14    if interest then
    1.15      interest:destroy()
    1.16 -    slot.put_into("notice", _"Interest removed")
    1.17 +--    slot.put_into("notice", _"Interest removed")
    1.18    else
    1.19 -    slot.put_into("notice", _"Interest already removed")
    1.20 +-- slot.put_into("notice", _"Interest already removed")
    1.21    end
    1.22    return
    1.23  end
    1.24 @@ -37,5 +37,5 @@
    1.25    interest.issue_id   = issue_id
    1.26    interest.member_id  = app.session.member_id
    1.27    interest:save()
    1.28 -  slot.put_into("notice", _"Interest updated")
    1.29 +-- slot.put_into("notice", _"Interest updated")
    1.30  end

Impressum / About Us