Skip to content

Commit

Permalink
Include warden scope in user info
Browse files Browse the repository at this point in the history
  • Loading branch information
javierjulio authored May 1, 2024
1 parent 990f835 commit 6690278
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bugsnag/middleware/warden_user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6690278

Please sign in to comment.