X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/40c7e0f9aa2fc0d1353818e5316da2203d114cf0..24ee5618ce06105fc8dd7baf641af08d96365c41:/app/controllers/application.rb diff --git a/app/controllers/application.rb b/app/controllers/application.rb index 52aeff3cb..328148fe1 100644 --- a/app/controllers/application.rb +++ b/app/controllers/application.rb @@ -7,7 +7,7 @@ class ApplicationController < ActionController::Base end def require_user - redirect_to :controller => 'user', :action => 'login' unless @user + redirect_to :controller => 'user', :action => 'login', :next_controller => controller_name, :next_action => action_name unless @user end def authorize(realm='Web Password', errormessage="Couldn't authenticate you")