IO-904 Unauth CSI link fix
This commit is contained in:
@@ -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" }}
|
||||
|
||||
Reference in New Issue
Block a user