mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-06-24 17:59:06 +02:00
Fix:Only show authors with books for users #2250
This commit is contained in:
parent
0ee6336b02
commit
ef1cdf6ad2
2 changed files with 12 additions and 4 deletions
|
@ -621,7 +621,7 @@ class LibraryController {
|
|||
model: Database.bookModel,
|
||||
attributes: ['id', 'tags', 'explicit'],
|
||||
where: bookWhere,
|
||||
required: false,
|
||||
required: !req.user.isAdminOrUp, // Only show authors with 0 books for admin users or up
|
||||
through: {
|
||||
attributes: []
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue