Skip to content
Snippets Groups Projects
Commit d6f8e05b authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Fix passign args to original authenticate_user!

parent 4c305d4d
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -48,7 +48,7 @@ class ApplicationController < ActionController::Base
end
end
 
def authenticate_user!
def authenticate_user!(*args)
# If user is not signe-in and tries to access root_path - redirect him to landing page
if current_application_settings.home_page_url.present?
if current_user.nil? && controller_name == 'dashboard' && action_name == 'show'
Loading
Loading
@@ -56,7 +56,7 @@ class ApplicationController < ActionController::Base
end
end
 
super
super(*args)
end
 
def log_exception(exception)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment