summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-01-16 18:12:15 -0800
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-01-16 19:39:33 -0800
commitd6f8e05bde1dc1cb7358c49a51be0fc1d91e5e59 (patch)
tree7021a5183f5402254ce152743b970ef4963ac347
parent4c305d4dd65643c30471eee5da580f27d87b5f2c (diff)
downloadgitlab-ce-d6f8e05bde1dc1cb7358c49a51be0fc1d91e5e59.tar.gz
Fix passign args to original authenticate_user!
-rw-r--r--app/controllers/application_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index 4780a7a2a9a..6da4f91c3f4 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -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'
@@ -56,7 +56,7 @@ class ApplicationController < ActionController::Base
end
end
- super
+ super(*args)
end
def log_exception(exception)