From df943f31b94f20b1709bb59f19638e9908a4187a Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Wed, 15 Feb 2017 22:57:19 -0500 Subject: [PATCH] require user for these actions --- app/controllers/topics_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/topics_controller.rb b/app/controllers/topics_controller.rb index 8af8f1e2..d592f9dd 100644 --- a/app/controllers/topics_controller.rb +++ b/app/controllers/topics_controller.rb @@ -2,7 +2,7 @@ class TopicsController < ApplicationController include TopicsHelper - before_action :require_user, only: [:create, :update, :destroy] + before_action :require_user, only: [:create, :update, :destroy, :follow, :unfollow] before_action :set_topic, only: [:show, :update, :relative_numbers, :relatives, :network, :destroy, :follow, :unfollow] after_action :verify_authorized, except: :autocomplete_topic