From 66902785a10e97a519651239acd1b851fe6e4e47 Mon Sep 17 00:00:00 2001 From: Javier Julio Date: Wed, 1 May 2024 17:25:58 -0400 Subject: [PATCH] Include warden scope in user info --- lib/bugsnag/middleware/warden_user.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bugsnag/middleware/warden_user.rb b/lib/bugsnag/middleware/warden_user.rb index 59c6af0de..6650aa52e 100644 --- a/lib/bugsnag/middleware/warden_user.rb +++ b/lib/bugsnag/middleware/warden_user.rb @@ -21,7 +21,7 @@ def call(report) best_scope = warden_scopes.include?("user") ? "user" : warden_scopes.first # Extract useful user information - user = {} + user = { :warden_scope => best_scope } user_object = env["warden"].user({:scope => best_scope, :run_callbacks => false}) rescue nil if user_object # Build the user info for this scope