mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-02-20 13:53:19 +01:00
Fix socket events check user permissions for library items #4199
This commit is contained in:
@@ -343,7 +343,7 @@ class MiscController {
|
||||
})
|
||||
await libraryItem.saveMetadataFile()
|
||||
|
||||
SocketAuthority.emitter('item_updated', libraryItem.toOldJSONExpanded())
|
||||
SocketAuthority.libraryItemEmitter('item_updated', libraryItem)
|
||||
numItemsUpdated++
|
||||
}
|
||||
}
|
||||
@@ -386,7 +386,7 @@ class MiscController {
|
||||
})
|
||||
await libraryItem.saveMetadataFile()
|
||||
|
||||
SocketAuthority.emitter('item_updated', libraryItem.toOldJSONExpanded())
|
||||
SocketAuthority.libraryItemEmitter('item_updated', libraryItem)
|
||||
numItemsUpdated++
|
||||
}
|
||||
|
||||
@@ -481,7 +481,7 @@ class MiscController {
|
||||
})
|
||||
await libraryItem.saveMetadataFile()
|
||||
|
||||
SocketAuthority.emitter('item_updated', libraryItem.toOldJSONExpanded())
|
||||
SocketAuthority.libraryItemEmitter('item_updated', libraryItem)
|
||||
numItemsUpdated++
|
||||
}
|
||||
}
|
||||
@@ -524,7 +524,7 @@ class MiscController {
|
||||
})
|
||||
await libraryItem.saveMetadataFile()
|
||||
|
||||
SocketAuthority.emitter('item_updated', libraryItem.toOldJSONExpanded())
|
||||
SocketAuthority.libraryItemEmitter('item_updated', libraryItem)
|
||||
numItemsUpdated++
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user