Adds back missing authenticate_user! calls
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
class AccountController < ApplicationController
|
class AccountController < ApplicationController
|
||||||
|
|
||||||
|
before_action :authenticate_user!
|
||||||
before_action :set_account
|
before_action :set_account
|
||||||
load_and_authorize_resource class: "User"
|
load_and_authorize_resource class: "User"
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
class Admin::BaseController < ApplicationController
|
class Admin::BaseController < ApplicationController
|
||||||
|
before_action :authenticate_user!
|
||||||
|
|
||||||
skip_authorization_check
|
skip_authorization_check
|
||||||
before_filter :verify_administrator
|
before_action :verify_administrator
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
class CommentsController < ApplicationController
|
class CommentsController < ApplicationController
|
||||||
|
before_action :authenticate_user!
|
||||||
before_action :build_comment, only: :create
|
before_action :build_comment, only: :create
|
||||||
load_and_authorize_resource
|
load_and_authorize_resource
|
||||||
respond_to :html, :js
|
respond_to :html, :js
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
class DebatesController < ApplicationController
|
class DebatesController < ApplicationController
|
||||||
include RecaptchaHelper
|
include RecaptchaHelper
|
||||||
|
before_action :authenticate_user!, except: [:index, :show]
|
||||||
load_and_authorize_resource
|
load_and_authorize_resource
|
||||||
|
|
||||||
def index
|
def index
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
class Moderation::BaseController < ApplicationController
|
class Moderation::BaseController < ApplicationController
|
||||||
|
before_action :authenticate_user!
|
||||||
|
|
||||||
skip_authorization_check
|
skip_authorization_check
|
||||||
before_filter :verify_moderator
|
before_action :verify_moderator
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user