fixes #58: Unauthenticated users can vote infinitely on posts

This commit is contained in:
albert
2011-09-14 13:20:47 -04:00
parent 27879050de
commit 3a111122f5

View File

@@ -1,4 +1,6 @@
class PostVotesController < ApplicationController
before_filter :member_only
def create
@post = Post.find(params[:post_id])
@post.vote!(params[:score])