From 6c25c5dbfd00f395edd68e71d40b3930eba767e7 Mon Sep 17 00:00:00 2001 From: Gregor Vostrak Date: Thu, 25 Apr 2024 16:35:34 +0200 Subject: [PATCH] only show team activity when user has the permission to view organization members --- resources/js/Pages/Dashboard.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/resources/js/Pages/Dashboard.vue b/resources/js/Pages/Dashboard.vue index b899a892..34761738 100644 --- a/resources/js/Pages/Dashboard.vue +++ b/resources/js/Pages/Dashboard.vue @@ -7,6 +7,7 @@ import TeamActivityCard from '@/Components/Dashboard/TeamActivityCard.vue'; import ThisWeekOverview from '@/Components/Dashboard/ThisWeekOverview.vue'; import ActivityGraphCard from '@/Components/Dashboard/ActivityGraphCard.vue'; import MainContainer from '@/Pages/MainContainer.vue'; +import { canViewMembers } from '@/utils/permissions'; const props = defineProps<{ latestTasks: { @@ -64,6 +65,7 @@ const props = defineProps<{ props.dailyTrackedHours ">