调整路由
This commit is contained in:
parent
63d89a71b1
commit
8ff33b479a
@ -31,7 +31,7 @@ function hasPermission(roles, route, parentsRoles) {
|
||||
|
||||
if (getSessionStorage('project').startsWith('design')) {
|
||||
const result = roles.filter(role => route.meta.roles.indexOf(role) >= 0) || [];
|
||||
return result.length && route.meta.roles.indexOf(userDesign) >= 0;
|
||||
return result.length && route.meta.roles.indexOf(userTrainingPlatform) < 0;
|
||||
} else {
|
||||
roles = roles.filter(function (role) {
|
||||
return route.meta.roles.indexOf(role) >= 0;
|
||||
|
Loading…
Reference in New Issue
Block a user