diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index d85befd7..5d329c20 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -477,6 +477,7 @@ HYPOTHETICAL SCHEDULEABLE USER ROLE RIGHTS Subcontractor (full) Overall UI access (just these, NOTHING else) Home + User settings Schedule READ ONLY, can view the schedule which shows only their own scheduled user items on workorders so they can open them Notification widget (bell icon) Can view notifications sent to them, but have no control over subscribing etc, this is so someone can direct notify them or they can receive errors from system @@ -513,6 +514,7 @@ HYPOTHETICAL SCHEDULEABLE USER ROLE RIGHTS Sub-contractor (limited) Overall UI access (just these, NOTHING else) Home + User settings Schedule READ ONLY, can view the schedule which shows only their own scheduled user items on workorders so they can open them Notification widget (bell icon) Can view notifications sent to them, but have no control over subscribing etc, this is so someone can direct notify them or they can receive errors from system diff --git a/ayanova/src/store.js b/ayanova/src/store.js index a20ea82c..ab8421b1 100644 --- a/ayanova/src/store.js +++ b/ayanova/src/store.js @@ -64,7 +64,6 @@ export default new Vuex.Store({ return state.userType == 3 || state.userType == 4; }, isSubContractorUser: state => { - console.log("Issubcontractoruser", state); return state.userType == 5; }, isScheduleableUser: state => { diff --git a/ayanova/src/views/home-notifications.vue b/ayanova/src/views/home-notifications.vue index 7933a1a4..cbd8b36e 100644 --- a/ayanova/src/views/home-notifications.vue +++ b/ayanova/src/views/home-notifications.vue @@ -298,7 +298,10 @@ function generateMenu(vm) { vm: vm }); - if (!window.$gz.store.getters.isCustomerUser) { + if ( + !window.$gz.store.getters.isCustomerUser && + !window.$gz.store.getters.isSubContractorUser + ) { menuOptions.menuItems.push({ title: "DirectNotification", icon: "$ayiCommentAlt",