diff --git a/nuxt/components/Navigation.vue b/nuxt/components/Navigation.vue index 1480e99..00436c4 100644 --- a/nuxt/components/Navigation.vue +++ b/nuxt/components/Navigation.vue @@ -22,7 +22,9 @@ const links: NavigationTree[] = [ }, ] -/* if (authStore.user?.roles.includes('admin')) { +await useAsyncData('user', () => authStore.fetchUser()) + +if (authStore.user?.roles.includes('admin')) { links.push({ label: 'Admin', to: '/admin', @@ -40,7 +42,7 @@ const links: NavigationTree[] = [ }, ], }) -} */ +}