Skip to content

Commit

Permalink
fix: on_404 method calls after 68947ae
Browse files Browse the repository at this point in the history
  • Loading branch information
wpramio committed Jan 18, 2024
1 parent 68947ae commit 2451b90
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/controllers/auth_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def validate_oidc_login

unless lti_registration_exists?(params[:iss], options)
logger.error('ERROR: The app is not currently registered within the lti broker.')
return on_404
return on404
end

@registration = lti_registration_params(params[:iss], options)
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/registration_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class RegistrationController < ApplicationController
before_action :print_parameters if Rails.configuration.developer_mode_enabled

def list
return on_404 if ENV['DEVELOPER_MODE_ENABLED'] != 'true'
return on404 if ENV['DEVELOPER_MODE_ENABLED'] != 'true'

@registrations = RailsLti2Provider::Tool.where(lti_version: '1.3.0').pluck(:tool_settings)
@registrations.map! do |reg|
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/tool_profile_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,6 @@ def xml_config_tc(launch_url)

def lti_authorized_default_application
return unless params[:app] == 'default' && ENV['DEVELOPER_MODE_ENABLED'] != 'true'
return on_404
return on404
end
end

0 comments on commit 2451b90

Please sign in to comment.