Adds back missing authenticate_user! calls

This commit is contained in:
kikito
2015-08-10 16:05:58 +02:00
parent 84d848df7e
commit 51323fa891
5 changed files with 7 additions and 2 deletions

View File

@@ -1,5 +1,6 @@
class AccountController < ApplicationController
before_action :authenticate_user!
before_action :set_account
load_and_authorize_resource class: "User"

View File

@@ -1,7 +1,8 @@
class Admin::BaseController < ApplicationController
before_action :authenticate_user!
skip_authorization_check
before_filter :verify_administrator
before_action :verify_administrator
private

View File

@@ -1,4 +1,5 @@
class CommentsController < ApplicationController
before_action :authenticate_user!
before_action :build_comment, only: :create
load_and_authorize_resource
respond_to :html, :js

View File

@@ -1,5 +1,6 @@
class DebatesController < ApplicationController
include RecaptchaHelper
before_action :authenticate_user!, except: [:index, :show]
load_and_authorize_resource
def index

View File

@@ -1,7 +1,8 @@
class Moderation::BaseController < ApplicationController
before_action :authenticate_user!
skip_authorization_check
before_filter :verify_moderator
before_action :verify_moderator
private