liquid_feedback_frontend

diff app/main/initiative/_action/remove_initiator.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 808269b7f41c
children
line diff
     1.1 --- a/app/main/initiative/_action/remove_initiator.lua	Thu Jun 23 03:30:57 2016 +0200
     1.2 +++ b/app/main/initiative/_action/remove_initiator.lua	Sun Jul 15 14:07:29 2018 +0200
     1.3 @@ -20,11 +20,11 @@
     1.4  local initiator_todelete = Initiator:by_pk(initiative.id, param.get("member_id", atom.integer))
     1.5  
     1.6  if not (initiator and initiator.accepted) and not (initiator.member_id == initiator_todelete.member_id) then
     1.7 -  error("access denied")
     1.8 +  return execute.view { module = "index", view = "403" }
     1.9  end
    1.10  
    1.11  if initiator_todelete.accepted == false and initiator.member_id ~= initiator_todelete.member_id then
    1.12 -  error("access denied")
    1.13 +  return execute.view { module = "index", view = "403" }
    1.14  end
    1.15  
    1.16  local initiators = initiative

Impressum / About Us