Skip to content

TaskView is a self-hosted project and task management platform focused on clarity, ownership, and control. TaskView is built for teams that want a transparent, self-hosted alternative to SaaS task managers.

wip: check permissions for TT component

Nikolai Gimana4bb9de09ffc
diff --git a/web/src/components/features/tasks/TaskDetailPanel.vue b/web/src/components/features/tasks/TaskDetailPanel.vue
index f5a45d4..2c4a3e5 100644
--- a/web/src/components/features/tasks/TaskDetailPanel.vue
+++ b/web/src/components/features/tasks/TaskDetailPanel.vue
@@ -114,6 +114,7 @@
<!-- Time tracking -->
<TaskTimeTracking
+ v-if="canViewTimeTracking || canLogTime"
:task-id="task.id"
class="flex-1"
/>
@@ -162,6 +163,8 @@ const toast = useToast()
const tasksStore = useTasksStore()
const {
canEditTaskStatus,
+ canViewTimeTracking,
+ canLogTime,
} = useGoalPermissions()
const task = computed(() => tasksStore.selectedTask ?? null)
const projectId = computed(() => task.value?.goalId ?? 0)