summaryrefslogtreecommitdiff
path: root/app/helpers/active_sessions_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/active_sessions_helper.rb')
-rw-r--r--app/helpers/active_sessions_helper.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/helpers/active_sessions_helper.rb b/app/helpers/active_sessions_helper.rb
index 8fb23f99cb3..2256bd006ea 100644
--- a/app/helpers/active_sessions_helper.rb
+++ b/app/helpers/active_sessions_helper.rb
@@ -22,4 +22,13 @@ module ActiveSessionsHelper
sprite_icon(icon_name, size: 16, css_class: 'gl-mt-2')
end
+
+ def revoke_session_path(active_session)
+ if active_session.session_private_id
+ profile_active_session_path(active_session.session_private_id)
+ else
+ # TODO: remove in 13.7
+ profile_active_session_path(active_session.public_id)
+ end
+ end
end