Skip to content

Commit 0039807

Browse files
committed
fix: only show admin link if user is admin
1 parent fb6a590 commit 0039807

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/components/HeaderUserWidget.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
</NuxtLink>
3838
<div class="h-0.5 rounded-full w-full bg-zinc-800" />
3939
<div class="flex flex-col mb-1">
40-
<MenuItem v-slot="{ active }">
40+
<MenuItem v-if="state.user.admin" v-slot="{ active }">
4141
<a
4242
:href="adminUrl"
4343
target="_blank"

0 commit comments

Comments
 (0)