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()