diff --git a/src/components/navigation/Sidebar.vue b/src/components/navigation/Sidebar.vue
index c5941cf..b24fbaa 100644
--- a/src/components/navigation/Sidebar.vue
+++ b/src/components/navigation/Sidebar.vue
@@ -19,18 +19,12 @@
@@ -107,7 +101,18 @@ export default {
acActions: sync("acActions"),
orderedMenuList() {
let self = this;
- return this.sharedService.sortByNumber(self.menuList, "displayId");
+ // Update menu list based on user permissions when acIsAdmin is updated
+ if(!self.acIsAdmin) {
+ if(self.acActions.length > 0) {
+ // Filter menu list based on user permissions when acActions is updated
+ let filteredMenus = self.menuList.filter(menu => {
+ return !self.resolvePermissions(menu.permissionKey);
+ });
+ return self.sharedService.sortByNumber(filteredMenus, "displayId")
+ }
+ } else {
+ return self.sharedService.sortByNumber(self.menuList, "displayId");
+ }
},
},
methods: {