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:
parent
8aa6d48360
commit
aa32dba482
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue