From 062ef365adc06ae0784f0efb77d6571f7b7db060 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juanjo=20Baz=C3=A1n?= Date: Wed, 5 Aug 2015 14:34:55 +0200 Subject: [PATCH] vote action not allowed for unauthenticated users --- app/controllers/debates_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/debates_controller.rb b/app/controllers/debates_controller.rb index 03afc1c8e..8ccf33f6a 100644 --- a/app/controllers/debates_controller.rb +++ b/app/controllers/debates_controller.rb @@ -1,7 +1,7 @@ class DebatesController < ApplicationController include RecaptchaHelper before_action :set_debate, only: [:show, :edit, :update, :vote] - before_action :authenticate_user!, except: [:index, :show, :vote] + before_action :authenticate_user!, except: [:index, :show] before_action :validate_ownership, only: [:edit, :update] def index