mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-08 00:08:14 +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)
|
||||
}
|
||||
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
|
||||
if (!req.user.checkCanAccessLibrary(audiobook.libraryId)) {
|
||||
|
Loading…
Reference in New Issue
Block a user