This commit is contained in:
2021-07-13 17:22:38 +00:00
parent 112d63bf32
commit ff8da9406e
3 changed files with 6 additions and 2 deletions

View File

@@ -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

View File

@@ -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 => {

View File

@@ -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",