Make sure all pages using the map layout call require_oauth
This commit is contained in:
parent
65d5f3a1db
commit
532d108536
2 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue