From eb8144b28b38f3e2f7e896d3a2429de0de075cb8 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Thu, 18 Aug 2016 07:26:07 +0200 Subject: [PATCH] Fixed current user selection of user devices to disable it in web interface. --- app/controllers/user_devices_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/user_devices_controller.rb b/app/controllers/user_devices_controller.rb index d2105f984..e189e1530 100644 --- a/app/controllers/user_devices_controller.rb +++ b/app/controllers/user_devices_controller.rb @@ -14,8 +14,9 @@ class UserDevicesController < ApplicationController attributes.delete('created_at') attributes.delete('device_details') attributes.delete('location_details') + attributes.delete('fingerprint') - if session[:user_device_id] == device.id + if session[:user_device_fingerprint] == device.fingerprint attributes['current'] = true end devices_full.push attributes