]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/views/commands.py
Fixed yahoo openid auth
[osqa.git] / forum / views / commands.py
index 83a6211a8448a001555e5bbb7d157d3464d42cbf..5271eec69d014aaf0591120096aa40ab67a29a1f 100644 (file)
@@ -75,6 +75,10 @@ class CannotDoubleActionException(CommandException):
 
 @decorate.withfn(command)
 def vote_post(request, id, vote_type):
+    if not request.method == 'POST':
+        raise CommandException(_("Invalid request"))
+
+
     post = get_object_or_404(Node, id=id).leaf
     user = request.user