Fix passign args to original authenticate_user!
This commit is contained in:
parent
38600e328b
commit
f2eb234c06
|
|
@ -48,7 +48,7 @@ class ApplicationController < ActionController::Base
|
||||||
end
|
end
|
||||||
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 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_application_settings.home_page_url.present?
|
||||||
if current_user.nil? && controller_name == 'dashboard' && action_name == 'show'
|
if current_user.nil? && controller_name == 'dashboard' && action_name == 'show'
|
||||||
|
|
@ -56,7 +56,7 @@ class ApplicationController < ActionController::Base
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
super
|
super(*args)
|
||||||
end
|
end
|
||||||
|
|
||||||
def log_exception(exception)
|
def log_exception(exception)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue