Skip to content

πŸ“š The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

fix: hide admin pannel for non admins users

Smaug67399293ae144073
diff --git a/frontend/app/components/Sidebar/Dock.vue b/frontend/app/components/Sidebar/Dock.vue
index 4e991542..ec474c9a 100644
--- a/frontend/app/components/Sidebar/Dock.vue
+++ b/frontend/app/components/Sidebar/Dock.vue
@@ -1,6 +1,6 @@
<template>
<div class="dock">
- <NuxtLink v-for="item in items" :key="item.label" :to="item.to" :class="{ admin: isAdmin && item.adminOnly, show: isAdmin && item.adminOnly }">
+ <NuxtLink v-for="item in items" :key="item.label" :to="item.to" :class="{ admin: item.adminOnly, show: isAdmin && item.adminOnly }">
<Icon :name="item.icon" display="lg" /><span v-if="mark.hasMark(item.mark as MarkId)" class="bubble" />
</NuxtLink>