This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 => {
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user