mirror of
https://github.com/openstreetmap/openstreetmap-website.git
synced 2025-08-16 17:07:06 +00:00
Require a logged in user for the iD frame
The frame will error if the user is not logged in as it wants to be able to access their OAuth token.
This commit is contained in:
@ -7,6 +7,7 @@ class SiteController < ApplicationController
|
||||
before_action :redirect_browse_params, :only => :index
|
||||
before_action :redirect_map_params, :only => [:index, :edit, :export]
|
||||
before_action :require_oauth, :only => [:index]
|
||||
before_action :require_user, :only => [:id]
|
||||
before_action :update_totp, :only => [:index]
|
||||
|
||||
authorize_resource :class => false
|
||||
|
Reference in New Issue
Block a user