Add security preference for workspace creation in cloud (#6801)

This commit is contained in:
Tom Moor
2024-04-13 07:01:15 -06:00
committed by GitHub
parent 1ee82e780e
commit 8490f5d558
8 changed files with 46 additions and 3 deletions

View File

@@ -34,6 +34,7 @@ function Security() {
guestSignin: team.guestSignin,
defaultUserRole: team.defaultUserRole,
memberCollectionCreate: team.memberCollectionCreate,
memberTeamCreate: team.memberTeamCreate,
inviteRequired: team.inviteRequired,
});
@@ -300,6 +301,19 @@ function Security() {
onChange={handleChange}
/>
</SettingRow>
{isCloudHosted && (
<SettingRow
label={t("Workspace creation")}
name="memberTeamCreate"
description={t("Allow editors to create new workspaces")}
>
<Switch
id="memberTeamCreate"
checked={data.memberTeamCreate}
onChange={handleChange}
/>
</SettingRow>
)}
</Scene>
);
}