Do not render manage page when not logged in
This commit is contained in:
parent
993b2a5064
commit
e29dc1ae8a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue