liquid_feedback_frontend
diff app/main/initiative/_action/add_support.lua @ 964:1997cf1da04b
Added support for finished phases
| author | bsw |
|---|---|
| date | Thu Feb 21 19:32:48 2013 +0100 (2013-02-21) |
| parents | b77e6a17ca77 |
| children | 701a5cf6b067 |
line diff
1.1 --- a/app/main/initiative/_action/add_support.lua Thu Feb 21 18:56:59 2013 +0100 1.2 +++ b/app/main/initiative/_action/add_support.lua Thu Feb 21 19:32:48 2013 +0100 1.3 @@ -11,9 +11,15 @@ 1.4 if issue.closed then 1.5 slot.put_into("error", _"This issue is already closed.") 1.6 return false 1.7 -elseif issue.fully_frozen then 1.8 +elseif issue.fully_frozen then 1.9 slot.put_into("error", _"Voting for this issue has already begun.") 1.10 return false 1.11 +elseif 1.12 + (issue.half_frozen and issue.phase_finished) or 1.13 + (not issue.accepted and issue.phase_finished) 1.14 +then 1.15 + slot.put_into("error", _"Current phase is already closed.") 1.16 + return false 1.17 end 1.18 1.19 if initiative.revoked then