From 4d9525099048b114f016767044abeb56111d14a5 Mon Sep 17 00:00:00 2001
From: BeastleeUK <18753419+BeastleeUK@users.noreply.github.com>
Date: Sun, 1 May 2022 19:44:30 +0100
Subject: [PATCH 1/2] Temp Fix for Unknown Error in App with Traefik
---
readme.md | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/readme.md b/readme.md
index 16d68472..40cc8d81 100644
--- a/readme.md
+++ b/readme.md
@@ -221,6 +221,17 @@ For this to work you must enable at least the following mods using `a2enmod`:
[from @silentArtifact](https://github.com/advplyr/audiobookshelf/issues/241#issuecomment-1036732329)
+### [Traefik Reverse Proxy](https://doc.traefik.io/traefik/)
+
+Middleware relating to CORS will cause the app to report Unknown Error when logging in. To prevent this don't apply any of the following headers to the router for this site:
+
+
+ - accessControlAllowMethods
+ - accessControlAllowOriginList
+ - accessControlMaxAge
+
+
+From [@Dondochaka](https://discord.com/channels/942908292873723984/942914154254176257/945074590374318170) and [@BeastleeUK](https://discord.com/channels/942908292873723984/942914154254176257/970366039294611506)
# Run from source
From 22e3d4a15028083e89235f518a67df139e26fb72 Mon Sep 17 00:00:00 2001
From: advplyr
Date: Sun, 1 May 2022 15:12:21 -0500
Subject: [PATCH 2/2] Fix:Account tags accessible #542
---
client/components/modals/AccountModal.vue | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/client/components/modals/AccountModal.vue b/client/components/modals/AccountModal.vue
index 409dd80a..59180952 100644
--- a/client/components/modals/AccountModal.vue
+++ b/client/components/modals/AccountModal.vue
@@ -86,7 +86,6 @@
-
@@ -181,9 +180,7 @@ export default {
if (this.$refs.modal) this.$refs.modal.setHide()
},
accessAllTagsToggled(val) {
- if (!val && !this.newUser.itemTagsAccessible.length) {
- this.newUser.itemTagsAccessible = this.libraries.map((l) => l.id)
- } else if (val && this.newUser.itemTagsAccessible.length) {
+ if (val && this.newUser.itemTagsAccessible.length) {
this.newUser.itemTagsAccessible = []
}
},
@@ -216,6 +213,10 @@ export default {
this.$toast.error('Must select at least one library')
return
}
+ if (!this.newUser.permissions.accessAllTags && !this.newUser.itemTagsAccessible.length) {
+ this.$toast.error('Must select at least one tag')
+ return
+ }
if (this.isNew) {
this.submitCreateAccount()