mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-11 03:41:42 +00:00
restrict user ereader updates to devices with sole ownership
This commit is contained in:
parent
3d9d3687d7
commit
d21e19d828
2 changed files with 5 additions and 2 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue