IO-904 Unauth CSI link fix
This commit is contained in:
@@ -80,7 +80,7 @@ export function CsiContainerPage({ currentUser }) {
|
|||||||
csiquestion: { config: csiquestions },
|
csiquestion: { config: csiquestions },
|
||||||
} = data.csi_by_pk;
|
} = data.csi_by_pk;
|
||||||
|
|
||||||
if (currentUser)
|
if (currentUser && currentUser.authorized)
|
||||||
return (
|
return (
|
||||||
<Layout
|
<Layout
|
||||||
style={{ height: "100vh", display: "flex", flexDirection: "column" }}
|
style={{ height: "100vh", display: "flex", flexDirection: "column" }}
|
||||||
@@ -92,6 +92,7 @@ export function CsiContainerPage({ currentUser }) {
|
|||||||
/>
|
/>
|
||||||
</Layout>
|
</Layout>
|
||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Layout
|
<Layout
|
||||||
style={{ height: "100vh", display: "flex", flexDirection: "column" }}
|
style={{ height: "100vh", display: "flex", flexDirection: "column" }}
|
||||||
|
|||||||
Reference in New Issue
Block a user