Skip to content

Commit 8924d7f

Browse files
committed
Disallow private sandboxes for now for server
1 parent cd9c02f commit 8924d7f

File tree

1 file changed

+4
-1
lines changed
  • packages/app/src/app/pages/Sandbox/Editor/Workspace/Project

1 file changed

+4
-1
lines changed

packages/app/src/app/pages/Sandbox/Editor/Workspace/Project/Project.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ export const Project: React.FunctionComponent<IProjectProps> = ({
5454
} = useOvermind();
5555

5656
const template = getTemplateDefinition(sandbox.template);
57+
const { isServer } = template;
5758

5859
return (
5960
<Container>
@@ -115,7 +116,9 @@ export const Project: React.FunctionComponent<IProjectProps> = ({
115116
Unlisted (only available by url)
116117
</option>
117118
)}
118-
{isPatron && <option value={2}>Private</option>}
119+
{isPatron && !isServer && (
120+
<option value={2}>Private</option>
121+
)}
119122
</PrivacySelect>
120123
</>
121124
) : (

0 commit comments

Comments
 (0)