Fix user tags issue

This commit is contained in:
advplyr 2022-04-22 05:00:52 -05:00
parent 554e9ec238
commit dc9c307663

View File

@ -308,8 +308,8 @@ class User {
}
checkCanAccessLibraryItemWithTags(tags) {
if (!tags || !tags.length) return false
if (this.permissions.accessAllTags) return true
if (!tags || !tags.length) return false
return this.itemTagsAccessible.some(tag => tags.includes(tag))
}