liquid_feedback_frontend
diff app/main/vote/_action/update.lua @ 949:e616d8f16f14
Force JavaScript test before voting; Removed unneccessary "preview2" mechanism in voting script
| author | jbe |
|---|---|
| date | Thu Nov 08 20:55:54 2012 +0100 (2012-11-08) |
| parents | 815995d95962 |
| children | 1997cf1da04b |
line diff
1.1 --- a/app/main/vote/_action/update.lua Thu Nov 08 15:32:57 2012 +0100 1.2 +++ b/app/main/vote/_action/update.lua Thu Nov 08 20:55:54 2012 +0100 1.3 @@ -3,7 +3,7 @@ 1.4 1.5 local issue = Issue:new_selector():add_where{ "id = ?", param.get("issue_id", atom.integer) }:for_share():single_object_mode():exec() 1.6 1.7 -local preview = param.get("preview") or param.get("preview2") == "1" and true or false 1.8 +local preview = param.get("preview") and true or false 1.9 1.10 if not app.session.member:has_voting_right_for_unit_id(issue.area.unit_id) then 1.11 error("access denied")