Skip to content

Commit

Permalink
Admin: Use configured unauthorized redirect handler
Browse files Browse the repository at this point in the history
This make sure the admin also uses the configured redirect handler
class.
  • Loading branch information
mamhoff authored and tvdeyen committed Jan 15, 2025
1 parent fcef2f4 commit 8daded5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module SolidusAdmin::AuthenticationAdapters::Backend
def authenticate_solidus_backend_user!
return if spree_current_user

instance_exec(&Spree::Admin::BaseController.unauthorized_redirect)
Spree::Backend::Config.unauthorized_redirect_handler_class.new(self).call
end

def store_location
Expand Down

0 comments on commit 8daded5

Please sign in to comment.