diff --git a/src/components/LeftMenu.vue b/src/components/LeftMenu.vue index 51e99808b..213c08d7e 100644 --- a/src/components/LeftMenu.vue +++ b/src/components/LeftMenu.vue @@ -9,7 +9,6 @@ import { toLowerCamel } from 'src/filters'; import routes from 'src/router/modules'; import LeftMenuItem from './LeftMenuItem.vue'; import LeftMenuItemGroup from './LeftMenuItemGroup.vue'; -import { useRole } from 'src/composables/useRole'; const { t } = useI18n(); const route = useRoute(); @@ -59,7 +58,6 @@ function addChildren(module, route, parent) { } const items = ref([]); -const role = useRole(); function getRoutes() { if (props.source === 'main') { @@ -70,7 +68,6 @@ function getRoutes() { (route) => toLowerCamel(route.name) === item.module ); if (!moduleDef) continue; - // if (!role.isEmployee()) continue; item.children = []; addChildren(item.module, moduleDef, item.children); diff --git a/src/components/NavBar.vue b/src/components/NavBar.vue index 980cae5b8..3051e8b99 100644 --- a/src/components/NavBar.vue +++ b/src/components/NavBar.vue @@ -1,7 +1,6 @@