Do not render manage page when not logged in

This commit is contained in:
Teemu Patja 2017-01-30 21:57:03 +02:00
parent 993b2a5064
commit e29dc1ae8a
No known key found for this signature in database
GPG Key ID: F5B7035E6580FD4C
1 changed files with 4 additions and 1 deletions

View File

@ -145,8 +145,11 @@
(secretary/defroute "/" []
(rf/dispatch [:set-active-page :issues]))
(secretary/defroute "/manage" []
(rf/dispatch [:set-active-page :manage]))
(if js/user
(rf/dispatch [:set-active-page :manage])
(secretary/dispatch! "/")))
;; -------------------------
;; History