refac/fix: note chat permissions issue

This commit is contained in:
Timothy Jaeryang Baek 2025-07-18 12:55:08 +04:00
parent 3e67ce6e8e
commit bcee131971
3 changed files with 19 additions and 4 deletions

View file

@ -0,0 +1,19 @@
<script lang="ts">
export let className = 'w-4 h-4';
export let strokeWidth = '1.5';
</script>
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
stroke-width={strokeWidth}
stroke="currentColor"
class={className}
>
<path
stroke-linecap="round"
stroke-linejoin="round"
d="M10.5 6h9.75M10.5 6a1.5 1.5 0 1 1-3 0m3 0a1.5 1.5 0 1 0-3 0M3.75 6H7.5m3 12h9.75m-9.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-3.75 0H7.5m9-6h3.75m-3.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-9.75 0h9.75"
/>
</svg>

View file

@ -297,10 +297,6 @@ Based on the user's instruction, update and enhance the existing notes by incorp
};
onMount(async () => {
if ($user?.role !== 'admin') {
await goto('/');
}
editorEnabled = localStorage.getItem('noteEditorEnabled') === 'true';
loaded = true;