diff --git a/config/sidebar.php b/config/sidebar.php index 1d9ad69..b4761d4 100644 --- a/config/sidebar.php +++ b/config/sidebar.php @@ -23,9 +23,9 @@ return [ 'icon' => 'mdi:view-dashboard-outline', 'items' => [ ['label' => 'sidebar.general.dashboard', 'to' => '/', 'icon' => 'mdi:view-dashboard-outline'], - ['label' => 'sidebar.general.myTasks', 'to' => '/my-tasks', 'icon' => 'mdi:clipboard-check-outline', 'module' => 'project-management'], - ['label' => 'sidebar.general.projects', 'to' => '/projects', 'icon' => 'mdi:folder-outline', 'module' => 'project-management'], - ['label' => 'sidebar.general.timeTracking', 'to' => '/time-tracking', 'icon' => 'mdi:calendar-edit-outline', 'module' => 'time-tracking'], + ['label' => 'sidebar.general.myTasks', 'to' => '/my-tasks', 'icon' => 'mdi:clipboard-check-outline', 'module' => 'project-management', 'permission' => 'project-management.tasks.view'], + ['label' => 'sidebar.general.projects', 'to' => '/projects', 'icon' => 'mdi:folder-outline', 'module' => 'project-management', 'permission' => 'project-management.projects.view'], + ['label' => 'sidebar.general.timeTracking', 'to' => '/time-tracking', 'icon' => 'mdi:calendar-edit-outline', 'module' => 'time-tracking', 'permission' => 'time-tracking.entries.view'], // Gating module uniquement (cf. en-tête) : rendu visuel + badge gérés côté layout. ['label' => 'sidebar.general.mail', 'to' => '/mail', 'icon' => 'mdi:email-outline', 'module' => 'mail'], ], diff --git a/frontend/modules/directory/components/ClientDrawer.vue b/frontend/modules/directory/components/ClientDrawer.vue index 8534d6c..1413689 100644 --- a/frontend/modules/directory/components/ClientDrawer.vue +++ b/frontend/modules/directory/components/ClientDrawer.vue @@ -6,21 +6,11 @@