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:
Tom Hughes 2022-07-26 00:30:50 +01:00
parent 8aa6d48360
commit aa32dba482

View file

@ -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