liquid_feedback_frontend
diff app/main/initiative/_action/revoke.lua @ 964:1997cf1da04b
Added support for finished phases
author | bsw |
---|---|
date | Thu Feb 21 19:32:48 2013 +0100 (2013-02-21) |
parents | bf99dcc58f68 |
children | 32cc544d5a5b |
line diff
1.1 --- a/app/main/initiative/_action/revoke.lua Thu Feb 21 18:56:59 2013 +0100 1.2 +++ b/app/main/initiative/_action/revoke.lua Thu Feb 21 19:32:48 2013 +0100 1.3 @@ -14,6 +14,9 @@ 1.4 elseif issue.half_frozen then 1.5 slot.put_into("error", _"This issue is already frozen.") 1.6 return false 1.7 +elseif not issue.accepted and issue.phase_finished then 1.8 + slot.put_into("error", _"Current phase is already closed.") 1.9 + return false 1.10 end 1.11 1.12 if initiative.revoked then