mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-21 11:24:53 +02:00
Fix user tags issue
This commit is contained in:
parent
554e9ec238
commit
dc9c307663
1 changed files with 1 additions and 1 deletions
|
@ -308,8 +308,8 @@ class User {
|
||||||
}
|
}
|
||||||
|
|
||||||
checkCanAccessLibraryItemWithTags(tags) {
|
checkCanAccessLibraryItemWithTags(tags) {
|
||||||
if (!tags || !tags.length) return false
|
|
||||||
if (this.permissions.accessAllTags) return true
|
if (this.permissions.accessAllTags) return true
|
||||||
|
if (!tags || !tags.length) return false
|
||||||
return this.itemTagsAccessible.some(tag => tags.includes(tag))
|
return this.itemTagsAccessible.some(tag => tags.includes(tag))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue