Skip to content

Commit f24f2ae

Browse files
committed
Admin: Use configured unauthorized redirect handler
This make sure the admin also uses the configured redirect handler class.
1 parent 6640037 commit f24f2ae

File tree

1 file changed

+1
-1
lines changed
  • admin/app/controllers/solidus_admin/authentication_adapters

1 file changed

+1
-1
lines changed

admin/app/controllers/solidus_admin/authentication_adapters/backend.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module SolidusAdmin::AuthenticationAdapters::Backend
1313
def authenticate_solidus_backend_user!
1414
return if spree_current_user
1515

16-
instance_exec(&Spree::Admin::BaseController.unauthorized_redirect)
16+
Spree::Backend::Config.unauthorized_redirect_handler_class.new.call(self)
1717
end
1818

1919
def store_location

0 commit comments

Comments
 (0)