IO-904 Unauth CSI link fix

This commit is contained in:
Patrick Fic
2021-04-20 09:43:44 -07:00
parent af813d145a
commit 5f9e813940

View File

@@ -80,7 +80,7 @@ export function CsiContainerPage({ currentUser }) {
csiquestion: { config: csiquestions },
} = data.csi_by_pk;
if (currentUser)
if (currentUser && currentUser.authorized)
return (
<Layout
style={{ height: "100vh", display: "flex", flexDirection: "column" }}
@@ -92,6 +92,7 @@ export function CsiContainerPage({ currentUser }) {
/>
</Layout>
);
return (
<Layout
style={{ height: "100vh", display: "flex", flexDirection: "column" }}