enh: notes user group permission

This commit is contained in:
Timothy Jaeryang Baek
2025-05-04 17:22:51 +04:00
parent f716968009
commit 84a05bec7b
8 changed files with 165 additions and 77 deletions
+1 -1
View File
@@ -570,7 +570,7 @@
</div>
{/if} -->
{#if $config?.features?.enable_notes ?? false}
{#if ($config?.features?.enable_notes ?? false) && ($user?.role === 'admin' || ($user?.permissions?.features?.notes ?? true))}
<div class="px-1.5 flex justify-center text-gray-800 dark:text-gray-200">
<a
class="grow flex items-center space-x-3 rounded-lg px-2 py-[7px] hover:bg-gray-100 dark:hover:bg-gray-900 transition"