diff options
author | Imre Farkas <ifarkas@gitlab.com> | 2019-02-23 21:18:44 +0300 |
---|---|---|
committer | Imre Farkas <ifarkas@gitlab.com> | 2019-02-27 13:44:58 +0300 |
commit | 44c4aad983570ea1832aa08c39f46dbc1b475fd3 (patch) | |
tree | 2c5445ccf54e3de7c8cc0a7c3efe39fcd423e867 /app/controllers | |
parent | 4bb06df7771999d13261d0cd05d678d89cba9aba (diff) |
Filter active sessions belonging to an admin impersonating the user
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/profiles/active_sessions_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/profiles/active_sessions_controller.rb b/app/controllers/profiles/active_sessions_controller.rb index efe7ede5efa..6cf7a120449 100644 --- a/app/controllers/profiles/active_sessions_controller.rb +++ b/app/controllers/profiles/active_sessions_controller.rb @@ -2,7 +2,7 @@ class Profiles::ActiveSessionsController < Profiles::ApplicationController def index - @sessions = ActiveSession.list(current_user) + @sessions = ActiveSession.list(current_user).reject(&:is_impersonated) end def destroy |