mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-04-20 01:17:45 +02:00
Fix user tags issue
This commit is contained in:
parent
554e9ec238
commit
dc9c307663
@ -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…
Reference in New Issue
Block a user