+
Configure Scanner
Scan Library
@@ -79,8 +79,8 @@ export default {
}
},
computed: {
- isRootUser() {
- return this.$store.getters['user/getIsRoot']
+ userIsAdminOrUp() {
+ return this.$store.getters['user/getIsAdminOrUp']
},
showExperimentalFeatures() {
return this.$store.state.showExperimentalFeatures
diff --git a/client/components/cards/LazyBookCard.vue b/client/components/cards/LazyBookCard.vue
index d3ff4a77..0813af5e 100644
--- a/client/components/cards/LazyBookCard.vue
+++ b/client/components/cards/LazyBookCard.vue
@@ -343,8 +343,8 @@ export default {
userCanDownload() {
return this.store.getters['user/getUserCanDownload']
},
- userIsRoot() {
- return this.store.getters['user/getIsRoot']
+ userIsAdminOrUp() {
+ return this.$store.getters['user/getIsAdminOrUp']
},
moreMenuItems() {
if (this.recentEpisode) {
@@ -383,7 +383,7 @@ export default {
text: 'Match'
})
}
- if (this.userIsRoot && !this.isFile) {
+ if (this.userIsAdminOrUp && !this.isFile) {
items.push({
func: 'rescan',
text: 'Re-Scan'
diff --git a/client/components/modals/item/tabs/Details.vue b/client/components/modals/item/tabs/Details.vue
index 5adb19a2..791a133b 100644
--- a/client/components/modals/item/tabs/Details.vue
+++ b/client/components/modals/item/tabs/Details.vue
@@ -10,11 +10,11 @@
- Quick Match
+ Quick Match
- Re-Scan
+ Re-Scan
Submit
@@ -52,8 +52,8 @@ export default {
isFile() {
return !!this.libraryItem && this.libraryItem.isFile
},
- isRootUser() {
- return this.$store.getters['user/getIsRoot']
+ userIsAdminOrUp() {
+ return this.$store.getters['user/getIsAdminOrUp']
},
isMissing() {
return !!this.libraryItem && !!this.libraryItem.isMissing
diff --git a/client/components/tables/UsersTable.vue b/client/components/tables/UsersTable.vue
index a1c9d647..79e574d5 100644
--- a/client/components/tables/UsersTable.vue
+++ b/client/components/tables/UsersTable.vue
@@ -45,8 +45,8 @@
-
-
+
+
edit
@@ -76,6 +76,9 @@ export default {
currentUserId() {
return this.$store.state.user.user.id
},
+ userIsRoot() {
+ return this.$store.getters['user/getIsRoot']
+ },
usersOnline() {
var usermap = {}
this.$store.state.users.users.forEach((u) => (usermap[u.id] = { online: true, session: u.session }))
diff --git a/client/pages/audiobook/_id/edit.vue b/client/pages/audiobook/_id/edit.vue
index d7f19318..837ac8ad 100644
--- a/client/pages/audiobook/_id/edit.vue
+++ b/client/pages/audiobook/_id/edit.vue
@@ -134,9 +134,6 @@ export default {
showExperimentalFeatures() {
return this.$store.state.showExperimentalFeatures
},
- isRootUser() {
- return this.$store.getters['user/getIsRoot']
- },
media() {
return this.libraryItem.media || {}
},
diff --git a/client/pages/config.vue b/client/pages/config.vue
index efd162b0..55f7b0ea 100644
--- a/client/pages/config.vue
+++ b/client/pages/config.vue
@@ -15,7 +15,7 @@
|