From bcee1319710a7a742f9fb6b1e775bd5dcd71c000 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Fri, 18 Jul 2025 12:55:08 +0400 Subject: [PATCH] refac/fix: note chat permissions issue --- .../icons/AdjustmentsHorizontalOutline.svelte | 19 +++++++++++++++++++ .../components/notes/NoteEditor/Chat.svelte | 4 ---- .../{Settings.svelte => Controls.svelte} | 0 3 files changed, 19 insertions(+), 4 deletions(-) create mode 100644 src/lib/components/icons/AdjustmentsHorizontalOutline.svelte rename src/lib/components/notes/NoteEditor/{Settings.svelte => Controls.svelte} (100%) diff --git a/src/lib/components/icons/AdjustmentsHorizontalOutline.svelte b/src/lib/components/icons/AdjustmentsHorizontalOutline.svelte new file mode 100644 index 0000000000..8219eb53c5 --- /dev/null +++ b/src/lib/components/icons/AdjustmentsHorizontalOutline.svelte @@ -0,0 +1,19 @@ + + + + + diff --git a/src/lib/components/notes/NoteEditor/Chat.svelte b/src/lib/components/notes/NoteEditor/Chat.svelte index 5310165e2e..fa20bdf7a0 100644 --- a/src/lib/components/notes/NoteEditor/Chat.svelte +++ b/src/lib/components/notes/NoteEditor/Chat.svelte @@ -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; diff --git a/src/lib/components/notes/NoteEditor/Settings.svelte b/src/lib/components/notes/NoteEditor/Controls.svelte similarity index 100% rename from src/lib/components/notes/NoteEditor/Settings.svelte rename to src/lib/components/notes/NoteEditor/Controls.svelte