liquid_feedback_frontend

diff app/main/draft/new.lua @ 1135:abee3e49cd44

Initiatives cannot be updated during verification phase
author bsw
date Tue Jan 27 12:07:58 2015 +0100 (2015-01-27)
parents 701a5cf6b067
children 77412cc23325
line diff
     1.1 --- a/app/main/draft/new.lua	Thu Jan 08 22:04:44 2015 +0100
     1.2 +++ b/app/main/draft/new.lua	Tue Jan 27 12:07:58 2015 +0100
     1.3 @@ -2,6 +2,20 @@
     1.4  initiative:load_everything_for_member_id(app.session.member_id)
     1.5  initiative.issue:load_everything_for_member_id(app.session.member_id)
     1.6  
     1.7 +if issue.closed then
     1.8 +  slot.put_into("error", _"This issue is already closed.")
     1.9 +  request.redirect{ module = "initiative", view = "show", id = initiative.id }
    1.10 +  return
    1.11 +elseif issue.half_frozen then 
    1.12 +  slot.put_into("error", _"This issue is already frozen.")
    1.13 +  request.redirect{ module = "initiative", view = "show", id = initiative.id }
    1.14 +  return
    1.15 +elseif issue.phase_finished then
    1.16 +  slot.put_into("error", _"Current phase is already closed.")
    1.17 +  request.redirect{ module = "initiative", view = "show", id = initiative.id }
    1.18 +  return
    1.19 +end
    1.20 +
    1.21  
    1.22  execute.view{
    1.23    module = "issue", view = "_head", params = {

Impressum / About Us