1
0
Эх сурвалжийг харах

refac/fix: note chat permissions issue

Timothy Jaeryang Baek 9 сар өмнө
parent
commit
bcee131971

+ 19 - 0
src/lib/components/icons/AdjustmentsHorizontalOutline.svelte

@@ -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>

+ 0 - 4
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;

+ 0 - 0
src/lib/components/notes/NoteEditor/Settings.svelte → src/lib/components/notes/NoteEditor/Controls.svelte