Renamed roles and trans keys "Limited"->"Restricted" "Full" -> ""

This commit is contained in:
2021-07-12 17:19:09 +00:00
parent cd1d8ce802
commit 1994691749
5 changed files with 27 additions and 28 deletions

View File

@@ -11,10 +11,10 @@ export default {
BizAdminLimited: 1,
///<summary>BizAdminFull</summary>
BizAdminFull: 2,
///<summary>DispatchLimited</summary>
DispatchLimited: 4,
///<summary>DispatchFull</summary>
DispatchFull: 8,
///<summary>ServiceLimited</summary>
ServiceLimited: 4,
///<summary>ServiceFull</summary>
ServiceFull: 8,
///<summary>InventoryLimited</summary>
InventoryLimited: 16,
///<summary>InventoryFull</summary>

View File

@@ -299,7 +299,7 @@ export default {
ayaType: window.$gz.type.Review,
currentUserIsASupervisor: window.$gz.role.hasRole([
window.$gz.role.AUTHORIZATION_ROLES.BizAdminFull,
window.$gz.role.AUTHORIZATION_ROLES.DispatchFull,
window.$gz.role.AUTHORIZATION_ROLES.ServiceFull,
window.$gz.role.AUTHORIZATION_ROLES.InventoryFull,
window.$gz.role.AUTHORIZATION_ROLES.SalesFull,
window.$gz.role.AUTHORIZATION_ROLES.AccountingFull
@@ -353,14 +353,14 @@ export default {
//mirrored from ReviewBiz.cs validation rule at server
/*
CurrentUserRoles.HasFlag(AuthorizationRoles.BizAdminFull) ||
CurrentUserRoles.HasFlag(AuthorizationRoles.DispatchFull) ||
CurrentUserRoles.HasFlag(AuthorizationRoles.ServiceFull) ||
CurrentUserRoles.HasFlag(AuthorizationRoles.InventoryFull) ||
CurrentUserRoles.HasFlag(AuthorizationRoles.SalesFull) ||
CurrentUserRoles.HasFlag(AuthorizationRoles.AccountingFull);
*/
return window.$gz.role.hasRole([
window.$gz.role.AUTHORIZATION_ROLES.BizAdminFull,
window.$gz.role.AUTHORIZATION_ROLES.DispatchFull,
window.$gz.role.AUTHORIZATION_ROLES.ServiceFull,
window.$gz.role.AUTHORIZATION_ROLES.InventoryFull,
window.$gz.role.AUTHORIZATION_ROLES.SalesFull,
window.$gz.role.AUTHORIZATION_ROLES.AccountingFull

View File

@@ -18,4 +18,9 @@ export default {
});
}
};
/*
TODO: copy dashboard menu links to own workorders for here
*/
</script>

View File

@@ -286,14 +286,14 @@ export default {
p: "CustomerLimited"
},
{
name: "Dispatcher",
l: "DispatchFull",
p: "DispatchFull"
name: "Service",
l: "ServiceFull",
p: "ServiceFull"
},
{
name: "Dispatcher - limited",
l: "DispatchLimited",
p: "DispatchLimited"
name: "Service - limited",
l: "ServiceLimited",
p: "ServiceLimited"
},
{
name: "Head office",