summaryrefslogtreecommitdiff
path: root/app/controllers/profiles/active_sessions_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/profiles/active_sessions_controller.rb')
-rw-r--r--app/controllers/profiles/active_sessions_controller.rb11
1 files changed, 1 insertions, 10 deletions
diff --git a/app/controllers/profiles/active_sessions_controller.rb b/app/controllers/profiles/active_sessions_controller.rb
index efe7ede5efa..c473023cacb 100644
--- a/app/controllers/profiles/active_sessions_controller.rb
+++ b/app/controllers/profiles/active_sessions_controller.rb
@@ -2,15 +2,6 @@
class Profiles::ActiveSessionsController < Profiles::ApplicationController
def index
- @sessions = ActiveSession.list(current_user)
- end
-
- def destroy
- ActiveSession.destroy(current_user, params[:id])
-
- respond_to do |format|
- format.html { redirect_to profile_active_sessions_url, status: :found }
- format.js { head :ok }
- end
+ @sessions = ActiveSession.list(current_user).reject(&:is_impersonated)
end
end