mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-02-20 13:53:19 +01:00
Fix user permissions restricted by tag #421
This commit is contained in:
@@ -308,7 +308,8 @@ class User {
|
||||
}
|
||||
|
||||
checkCanAccessLibraryItemWithTags(tags) {
|
||||
if (this.permissions.accessAllTags || !tags || !tags.length) return true
|
||||
if (!tags || !tags.length) return false
|
||||
if (this.permissions.accessAllTags) return true
|
||||
return this.itemTagsAccessible.some(tag => tags.includes(tag))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user