Skip to content

Commit 3e0a843

Browse files
committed
fix impersonation
1 parent e410fc9 commit 3e0a843

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/users_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def impersonate
7373
User.order('random()').first
7474
end
7575
sign_in(@user)
76-
redirect_to profile_url(username: user.username)
76+
redirect_to profile_url(username: @user.username)
7777
end
7878
end
7979

0 commit comments

Comments
 (0)