Fix user permissions restricted by tag #421

This commit is contained in:
advplyr committed 2022-04-21 19:29:15 -05:00
1 parent 6f7d2ef4cd
commit 2276228531
4 files changed
+15 -7

No files matched your search

+2 -1
View File
@@ -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))
}