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

Keep hidden routes hidden

parent 2751210e
Branches
No related tags found
1 merge request!324Forward-port: Handle moderation privileges
......@@ -57,7 +57,7 @@ export const beforeEachRoute = (to, from, next) => {
store.dispatch('GenerateRoutes', { roles }).then(() => {
const addRouters = store.getters.addRouters
addRouters.forEach(route => {
route.hidden = !isPrivileged(route, privileges)
route.hidden = route.hidden || !isPrivileged(route, privileges)
if (route.path === '') {
route.redirect = findFirstUnhiddenPath(addRouters)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment