Skip to content

Commit

Permalink
Render SessionObserver if the user is authorized
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoernricks committed Sep 4, 2018
1 parent a1bbb4e commit 4a86521
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gsa/src/web/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import {stringify, parse} from 'qs';
import qhistory from 'qhistory';

import LocationObserver from 'web/components/observer/locationobserver';
import SessionObserver from 'web/components/observer/sessionobserver';

import AssetsPage from './pages/assets/page';
import Page from './pages/page';
Expand Down Expand Up @@ -153,6 +154,7 @@ class Routes extends React.Component {
<Switch>
<Route path="/login" component={LoginPage}/>
<Authorized>
<SessionObserver/>
<LocationObserver>
<Page>
<Switch>
Expand Down

0 comments on commit 4a86521

Please sign in to comment.