diff --git a/client/pages/account.vue b/client/pages/account.vue index ee95c7d60..28780a3b7 100644 --- a/client/pages/account.vue +++ b/client/pages/account.vue @@ -73,7 +73,7 @@ logout{{ $strings.ButtonLogout }} - + @@ -126,6 +126,9 @@ export default { }, showEreaderTable() { return this.usertype !== 'root' && this.usertype !== 'admin' && this.user.permissions?.createEreader + }, + revisedEreaderDevices() { + return this.ereaderDevices.filter((device) => device.users?.length === 1) } }, methods: { diff --git a/server/controllers/MeController.js b/server/controllers/MeController.js index 507edcf4b..bc3da289d 100644 --- a/server/controllers/MeController.js +++ b/server/controllers/MeController.js @@ -413,7 +413,7 @@ class MeController { } const otherDevices = Database.emailSettings.ereaderDevices.filter((device) => { - return !Database.emailSettings.checkUserCanAccessDevice(device, req.user) + return !Database.emailSettings.checkUserCanAccessDevice(device, req.user) && device.users?.length === 1 }) const ereaderDevices = otherDevices.concat(userEReaderDevices)