mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 16:11:08 +08:00
FIX: Do not check for suspicious login when impersonating. (#6534)
* FIX: Do not check for suspicious login when impersonating. * DEV: Add 'impersonate' parameter to log_on_user.
This commit is contained in:

committed by
Régis Hanol

parent
012da86a07
commit
5af9a69a3b
@ -12,7 +12,7 @@ class Admin::ImpersonateController < Admin::AdminController
|
||||
StaffActionLogger.new(current_user).log_impersonate(user)
|
||||
|
||||
# Log on as the user
|
||||
log_on_user(user)
|
||||
log_on_user(user, impersonate: true)
|
||||
|
||||
render body: nil
|
||||
end
|
||||
|
Reference in New Issue
Block a user