Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorImre Farkas <ifarkas@gitlab.com>2019-02-23 21:18:44 +0300
committerImre Farkas <ifarkas@gitlab.com>2019-02-27 13:44:58 +0300
commit44c4aad983570ea1832aa08c39f46dbc1b475fd3 (patch)
tree2c5445ccf54e3de7c8cc0a7c3efe39fcd423e867 /app/controllers/profiles
parent4bb06df7771999d13261d0cd05d678d89cba9aba (diff)
Filter active sessions belonging to an admin impersonating the user
Diffstat (limited to 'app/controllers/profiles')
-rw-r--r--app/controllers/profiles/active_sessions_controller.rb2
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