From 1e9a40a8d806becc0f9e0d731bc3042494f17b16 Mon Sep 17 00:00:00 2001 From: dlpzx Date: Wed, 27 Nov 2024 10:19:01 +0100 Subject: [PATCH 1/4] Use isAdmin for Dashboards upVote --- .../src/modules/Dashboards/views/DashboardView.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/frontend/src/modules/Dashboards/views/DashboardView.js b/frontend/src/modules/Dashboards/views/DashboardView.js index 03abaa021..e82270af4 100644 --- a/frontend/src/modules/Dashboards/views/DashboardView.js +++ b/frontend/src/modules/Dashboards/views/DashboardView.js @@ -222,11 +222,13 @@ const DashboardView = () => { - upVoteDashboard(dashboard.dashboardUri)} - upVotes={upVotes || 0} - /> + {isAdmin && ( + upVoteDashboard(dashboard.dashboardUri)} + upVotes={upVotes || 0} + /> + )}