diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-07-28 15:30:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-28 15:30:06 +0200 |
commit | 8c0dd33ce44f25b45af4e9a3acd18134be1b3ebf (patch) | |
tree | 1e5d452275be8689fea5a6c7cfa6d9c3cab69f7f /app | |
parent | 12874eafa6f9d74367dda0436e1d01279af63b7b (diff) |
Fix current session not being displayed in sessions list (#4424)
Diffstat (limited to 'app')
-rw-r--r-- | app/views/auth/registrations/_sessions.html.haml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/auth/registrations/_sessions.html.haml b/app/views/auth/registrations/_sessions.html.haml index 84207862a..7ac578bb1 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 |