From 043dfdb474455d42fcdfff4cb5b3cfbbc4b66ad4 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Fri, 28 Jul 2017 15:30:06 +0200 Subject: [PATCH] Fix current session not being displayed in sessions list (#4424) --- app/views/auth/registrations/_sessions.html.haml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/auth/registrations/_sessions.html.haml b/app/views/auth/registrations/_sessions.html.haml index 84207862ad..7ac578bb17 100644 --- a/app/views/auth/registrations/_sessions.html.haml +++ b/app/views/auth/registrations/_sessions.html.haml @@ -19,10 +19,10 @@ %td %samp= session.ip %td - - if request.session['auth_id'] == session.session_id + - if current_session.session_id == session.session_id = t 'sessions.current_session' - else %time.time-ago{ datetime: session.updated_at.iso8601, title: l(session.updated_at) }= l(session.updated_at) %td - - if request.session['auth_id'] != session.session_id + - if current_session.session_id != session.session_id = table_link_to 'times', t('sessions.revoke'), settings_session_path(session), method: :delete