mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-11-13 12:23:34 +01:00
Update get series for library endpoint to ensure series belongs to library
This commit is contained in:
1 parent
63a883e595
commit
aef33df8d3
1 file changed
+1
-1
@@ -782,7 +782,7 @@ class LibraryController {
|
||||
.filter((v) => !!v)
|
||||
|
||||
const series = await Database.seriesModel.findByPk(req.params.seriesId)
|
||||
if (!series) return res.sendStatus(404)
|
||||
if (!series || series.libraryId !== req.library.id) return res.sendStatus(404)
|
||||
|
||||
const libraryItemsInSeries = await libraryItemsBookFilters.getLibraryItemsForSeries(series, req.user)
|
||||
|
||||
|
||||
Reference in new issue
Block a user