diff --git a/apps/client/components/NotebookEditor/index.tsx b/apps/client/components/NotebookEditor/index.tsx index bed2a5245..8c8dceca5 100644 --- a/apps/client/components/NotebookEditor/index.tsx +++ b/apps/client/components/NotebookEditor/index.tsx @@ -152,16 +152,6 @@ export default function NotebookEditor() { setValue(editor.document); }; - function checkCanView() { - if (data && data.note.userId !== user.user.id) { - router.back(); - } - } - - useEffect(() => { - checkCanView(); - }, [data]); - return ( <>