Skip to content
Snippets Groups Projects
Commit 5d3ba473 authored by Ilja's avatar Ilja Committed by Haelwenn
Browse files

Fix redirect after login and do sidebar differently

I noticed that the routes have an option `hidden`. This is what's used to show or hide items in the sidebar.
Now we set this option after login before adding the routes.

The redirect for root is now also set after login before adding the route.
That way we can set the route to the path corresponding with the first item in the sidebar.
When there's no unhidden route (e.g. when admin-fe doesn't know about any privilege the user has), the redirect goes to /401.
parent e43d1caf
No related branches found
No related tags found
1 merge request!324Forward-port: Handle moderation privileges
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment