diff --git a/app/controllers/admin/employees_controller.rb b/app/controllers/admin/employees_controller.rb index 0f2136b0..bcbd9708 100644 --- a/app/controllers/admin/employees_controller.rb +++ b/app/controllers/admin/employees_controller.rb @@ -1,7 +1,8 @@ module Admin class EmployeesController < Admin::ApplicationController before_filter :set_relation_options, only: [:new, :edit, :create, :update] - skip_before_filter :authenticate_administrator!, only: :test_login + skip_before_filter :setup_administrator!, only: :test_login + skip_authorize_resource only: :test_login skip_before_filter :set_locale, only: :test_login # GET /employees # GET /employees.json diff --git a/app/controllers/admin/users_controller.rb b/app/controllers/admin/users_controller.rb index 5e1b809f..0b142de2 100644 --- a/app/controllers/admin/users_controller.rb +++ b/app/controllers/admin/users_controller.rb @@ -1,6 +1,7 @@ module Admin class UsersController < Admin::ApplicationController - skip_before_filter :authenticate_administrator!, only: :test_login + skip_before_filter :setup_administrator!, only: :test_login + skip_authorize_resource only: :test_login skip_before_filter :set_locale, only: :test_login # GET /users # GET /users.json