requires the user to be logged in, add missing module to controller

adds missing modules to debate_links

adds missing modules to debate_links
This commit is contained in:
kikito
2016-02-08 16:08:48 +01:00
parent 2a55c2d94d
commit 785939b2df

View File

@@ -1,8 +1,13 @@
class DebateLinksController < ApplicationController class DebateLinksController < ApplicationController
include FeatureFlags
include CommentableActions include CommentableActions
before_action :authenticate_user!, except: [:show]
load_and_authorize_resource class: "Debate" load_and_authorize_resource class: "Debate"
feature_flag :debates
respond_to :html, :js respond_to :html, :js
private private