This commit is contained in:
@@ -477,6 +477,7 @@ HYPOTHETICAL SCHEDULEABLE USER ROLE RIGHTS
|
|||||||
Subcontractor (full)
|
Subcontractor (full)
|
||||||
Overall UI access (just these, NOTHING else)
|
Overall UI access (just these, NOTHING else)
|
||||||
Home
|
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
|
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)
|
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
|
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)
|
Sub-contractor (limited)
|
||||||
Overall UI access (just these, NOTHING else)
|
Overall UI access (just these, NOTHING else)
|
||||||
Home
|
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
|
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)
|
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
|
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;
|
return state.userType == 3 || state.userType == 4;
|
||||||
},
|
},
|
||||||
isSubContractorUser: state => {
|
isSubContractorUser: state => {
|
||||||
console.log("Issubcontractoruser", state);
|
|
||||||
return state.userType == 5;
|
return state.userType == 5;
|
||||||
},
|
},
|
||||||
isScheduleableUser: state => {
|
isScheduleableUser: state => {
|
||||||
|
|||||||
@@ -298,7 +298,10 @@ function generateMenu(vm) {
|
|||||||
vm: vm
|
vm: vm
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!window.$gz.store.getters.isCustomerUser) {
|
if (
|
||||||
|
!window.$gz.store.getters.isCustomerUser &&
|
||||||
|
!window.$gz.store.getters.isSubContractorUser
|
||||||
|
) {
|
||||||
menuOptions.menuItems.push({
|
menuOptions.menuItems.push({
|
||||||
title: "DirectNotification",
|
title: "DirectNotification",
|
||||||
icon: "$ayiCommentAlt",
|
icon: "$ayiCommentAlt",
|
||||||
|
|||||||
Reference in New Issue
Block a user