mirror of
https://github.com/Gimanh/taskview-community.git
synced 2026-09-11 21:38:56 +00:00
wip: check permissions for TT component
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user