Commit f4a37c54 by Mykhailo Makohin

little fix in home and dashboard controllers

parent b0d50fc7
......@@ -31,13 +31,6 @@ ActiveAdmin.register_page "Dashboard" do
controller do
# before_action :authenticate_user!
load_and_authorize_resource
def index
puts '============================'
puts current_user.present?
puts current_user.admin?
puts '============================'
end
end
end # content
end
......@@ -12,9 +12,4 @@ class ApplicationController < ActionController::Base
def authenticate_user!
redirect_to root_path, notice: 'Для подальшої роботи з системою Вам потрібно авторизуватися' unless user_signed_in?
end
def access_denied(exception)
redirect_to root_path, alert: exception.message
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment