From 964b4ef97dd604862b784af789888e124f21ac8f Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Wed, 27 Apr 2022 19:04:06 -0700 Subject: [PATCH] fix: Allow authorized signups to hosted-only setting --- app/scenes/Settings/Security.tsx | 44 +++++++++++++++++--------------- 1 file changed, 23 insertions(+), 21 deletions(-) diff --git a/app/scenes/Settings/Security.tsx b/app/scenes/Settings/Security.tsx index b17e2f385..82e21d82d 100644 --- a/app/scenes/Settings/Security.tsx +++ b/app/scenes/Settings/Security.tsx @@ -14,6 +14,7 @@ import env from "~/env"; import useCurrentTeam from "~/hooks/useCurrentTeam"; import useStores from "~/hooks/useStores"; import useToasts from "~/hooks/useToasts"; +import isHosted from "~/utils/isHosted"; import SettingRow from "./components/SettingRow"; function Security() { @@ -170,28 +171,29 @@ function Security() { onChange={handleChange} /> - - , - }} + {isHosted && ( + , + }} + /> + } + > + - } - > - - + + )}