Re-enable access for users not from Reading School

This commit is contained in:
mg
2022-11-19 16:14:58 +00:00
parent 866589f907
commit d9541567c2
2 changed files with 8 additions and 8 deletions
+6 -3
View File
@@ -265,9 +265,12 @@ class App extends React.Component {
<Route path="/privacy" exact>
<PrivacyPolicy logEvent={analytics.logEvent} page={this.page} />
</Route>
<Route path="/">
<PlatformDisabled logEvent={analytics.logEvent} page={this.page} />
</Route>
{
this.state.user.email.endsWith("@reading-school.co.uk") &&
<Route path="/">
<PlatformDisabled logEvent={analytics.logEvent} page={this.page} />
</Route>
}
<Route path="/" exact>
<LoggedInHome db={db} firebase={firebase} functions={functions} user={this.state.user} logEvent={analytics.logEvent} page={this.page} />
</Route>