olivernjeru / replicant-trader

0 stars 0 forks source link

Protect Authenticated User Designated Routes #43

Closed olivernjeru closed 2 months ago

olivernjeru commented 2 months ago

Precursor. When a user is authenticated, they are directed to their designated route. If they are a client, they are directed to the 'client' route, if they are a market maker, they are directed to the 'mm-dashboard'. However, they can still access the route of a dashboard that is not of their role. This means that a client can access a market maker's dashboard and a market maker can access a client's dashboard. This should not be the case. They should only access their dashboards and be limited to that only unless they want to access the profile or settings routes of which they should be at liberty to access.

olivernjeru commented 2 months ago
olivernjeru commented 2 months ago

This issue is solved here, update existing code to protect authenticated user designated routes