X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/6f7eb8f0e8bba2a671136f187b4371153af154c9..83821816359187fa2b877a29b7ab7d9f974c17b5:/app/controllers/user_controller.rb diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index de43fee14..97b0de73c 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -1,7 +1,7 @@ class UserController < ApplicationController layout :choose_layout - before_filter :disable_terms_redirect, :only => [:terms, :save, :logout] + before_filter :disable_terms_redirect, :only => [:terms, :save, :logout, :api_details] before_filter :authorize, :only => [:api_details, :api_gpx_files] before_filter :authorize_web, :except => [:api_details, :api_gpx_files] before_filter :set_locale, :except => [:api_details, :api_gpx_files] @@ -522,6 +522,6 @@ private # this is necessary otherwise going to the user terms page, when # having not agreed already would cause an infinite redirect loop. # it's .now so that this doesn't propagate to other pages. - flash.now[:showing_terms] = true + flash.now[:skip_terms] = true end end