mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-27 08:19:00 +01:00
Fix:Quick match requiring cover
This commit is contained in:
parent
a5b10aac96
commit
4e7d2ddc58
@ -264,7 +264,7 @@ class BookController {
|
|||||||
return res.sendStatus(403)
|
return res.sendStatus(403)
|
||||||
}
|
}
|
||||||
var audiobook = this.db.audiobooks.find(a => a.id === req.params.id)
|
var audiobook = this.db.audiobooks.find(a => a.id === req.params.id)
|
||||||
if (!audiobook || !audiobook.book.cover) return res.sendStatus(404)
|
if (!audiobook) return res.sendStatus(404)
|
||||||
|
|
||||||
// Check user can access this audiobooks library
|
// Check user can access this audiobooks library
|
||||||
if (!req.user.checkCanAccessLibrary(audiobook.libraryId)) {
|
if (!req.user.checkCanAccessLibrary(audiobook.libraryId)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user