From 418adcf8911b6810460f9bab19bcc6dfe114fbf9 Mon Sep 17 00:00:00 2001 From: advplyr Date: Sun, 9 Apr 2023 16:10:03 -0500 Subject: [PATCH] Update:Only admin users can see full file path #1411 --- client/components/tables/LibraryFilesTable.vue | 5 ++++- client/components/tables/TracksTable.vue | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/client/components/tables/LibraryFilesTable.vue b/client/components/tables/LibraryFilesTable.vue index 1e3c7dc6..d941e608 100644 --- a/client/components/tables/LibraryFilesTable.vue +++ b/client/components/tables/LibraryFilesTable.vue @@ -6,7 +6,7 @@ {{ files.length }}
- +
expand_more
@@ -67,6 +67,9 @@ export default { }, userCanDownload() { return this.$store.getters['user/getUserCanDownload'] + }, + userIsAdmin() { + return this.$store.getters['user/getIsAdminOrUp'] } }, methods: { diff --git a/client/components/tables/TracksTable.vue b/client/components/tables/TracksTable.vue index 05f7ea17..66d11f72 100644 --- a/client/components/tables/TracksTable.vue +++ b/client/components/tables/TracksTable.vue @@ -7,7 +7,7 @@
- + {{ $strings.ButtonManageTracks }} @@ -90,6 +90,9 @@ export default { userCanUpdate() { return this.$store.getters['user/getUserCanUpdate'] }, + userIsAdmin() { + return this.$store.getters['user/getIsAdminOrUp'] + }, showExperimentalFeatures() { return this.$store.state.showExperimentalFeatures }