-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
react router Link component breaks authorization #2
Comments
could you provide more info about your configuration of the routing and the constructor content of the class which extends the |
Route configuration:
|
Sorry for the late answer... one more question - what role are in |
@burczu The session user has one role like: { "role": "user" }. As this.userRoles takes an array asargument threfore I have passed it into array. |
@burczu @prakharsingh did you manage to resolve this issue? |
I am facing a problem with the Link component of React router. If I try to visit a restricted route through Link like as: Profile the AuthorizedComponent fails to check if the route is permitted to the user or not. Any help would be appreciated.
Thanks
The text was updated successfully, but these errors were encountered: