We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd794d1 commit cfb27d0Copy full SHA for cfb27d0
1 file changed
apps/client/components/NotebookEditor/index.tsx
@@ -152,16 +152,6 @@ export default function NotebookEditor() {
152
setValue(editor.document);
153
};
154
155
- function checkCanView() {
156
- if (data && data.note.userId !== user.user.id) {
157
- router.back();
158
- }
159
160
-
161
- useEffect(() => {
162
- checkCanView();
163
- }, [data]);
164
165
return (
166
<>
167
<div className="flex flex-row items-center justify-end py-1 px-6 space-x-4 mt-2">
0 commit comments