-
Notifications
You must be signed in to change notification settings - Fork 0
User can log out and only view pages when logged in #63
Comments
@hpjaj I can take care of this, theres some new approaches in react-router 4 I believe. Could be a fun one for you to tackle too. |
@RobAWilkinson Yeah man, it’s all you! I believe the sessions#destroy method and current users presence are options for you, too. |
True, but all the routing is done from the front end, right now user can see all links and pages, even when logged out. |
Yeah, good call. I was thinking an option would be to check for the presence of the current user at either the controller or |
@RobAWilkinson - Is this inline with what you're thinking? |
@hpjaj yes! Exactly, tyler mcginnis is gold |
Sweet! I can take this one if you'd like? |
Background
Authenticated users can access pages, guests cannot.
Definition of Done
The text was updated successfully, but these errors were encountered: