add private functionality

This commit is contained in:
Ishaan Dey
2024-05-26 19:02:47 -07:00
parent 34afefcc4a
commit 089ab2b1df
3 changed files with 84 additions and 75 deletions

View File

@ -82,6 +82,10 @@ export default async function CodePage({ params }: { params: { id: string } }) {
return notFound()
}
if (isSharedUser && sandboxData.visibility === "private") {
return notFound()
}
return (
<div className="overflow-hidden overscroll-none w-screen flex flex-col h-screen bg-background">
<Room id={sandboxId}>