Make sure all pages using the map layout call require_oauth

This commit is contained in:
Tom Hughes 2013-11-24 15:29:38 +00:00
parent 65d5f3a1db
commit 532d108536
2 changed files with 2 additions and 0 deletions

View file

@ -4,6 +4,7 @@ class BrowseController < ApplicationController
before_filter :authorize_web
before_filter :set_locale
before_filter { |c| c.check_database_readable(true) }
before_filter :require_oauth
around_filter :web_timeout
def relation

View file

@ -269,6 +269,7 @@ class ChangesetController < ApplicationController
end
if request.format == :html and !params[:bbox]
require_oauth
render :action => :history, :layout => map_layout
else
changesets = conditions_nonempty(Changeset.all)