diff --git a/app/controllers/admin/users_controller.rb b/app/controllers/admin/users_controller.rb index 205cf0490ab..24504685e48 100644 --- a/app/controllers/admin/users_controller.rb +++ b/app/controllers/admin/users_controller.rb @@ -29,7 +29,7 @@ class Admin::UsersController < Admin::ApplicationController end def impersonate - if !can?(user, :log_in) + if can?(user, :log_in) session[:impersonator_id] = current_user.id warden.set_user(user, scope: :user)