Skip to content

Commit b0df204

Browse files
authored
Put report page behind login. (canada-ca#794)
1 parent d6114db commit b0df204

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

frontend/src/App.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,13 @@ export default function App() {
207207
<QRcodePage userName={currentUser.userName} />
208208
</RouteIf>
209209

210-
<Route path="/dmarc-report/:period?/:year?">
210+
<RouteIf
211+
condition={isLoggedIn()}
212+
alternate="/sign-in"
213+
path="/dmarc-report/:period?/:year?"
214+
>
211215
<DmarcReportPage />
212-
</Route>
216+
</RouteIf>
213217

214218
<Route component={PageNotFound} />
215219
</Switch>

0 commit comments

Comments
 (0)