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

This commit is contained in:
2021-07-12 17:29:42 +00:00
parent 1994691749
commit 5cbc6516e1
13 changed files with 122 additions and 122 deletions

View File

@@ -48,7 +48,7 @@
const FORM_KEY = "adm-import";
export default {
async created() {
//NOTE: chose this because there is no general import but report covers bizadminfull and bizadminlimited
//NOTE: chose this because there is no general import but report covers bizadmin and bizadminrestricted
this.rights = window.$gz.role.getRights(window.$gz.type.Report);
window.$gz.eventBus.$on("menu-click", clickHandler);
await fetchTranslatedText(this);

View File

@@ -298,11 +298,11 @@ export default {
rights: window.$gz.role.defaultRightsObject(),
ayaType: window.$gz.type.Review,
currentUserIsASupervisor: window.$gz.role.hasRole([
window.$gz.role.AUTHORIZATION_ROLES.BizAdminFull,
window.$gz.role.AUTHORIZATION_ROLES.ServiceFull,
window.$gz.role.AUTHORIZATION_ROLES.InventoryFull,
window.$gz.role.AUTHORIZATION_ROLES.SalesFull,
window.$gz.role.AUTHORIZATION_ROLES.AccountingFull
window.$gz.role.AUTHORIZATION_ROLES.BizAdmin,
window.$gz.role.AUTHORIZATION_ROLES.Service,
window.$gz.role.AUTHORIZATION_ROLES.Inventory,
window.$gz.role.AUTHORIZATION_ROLES.Sales,
window.$gz.role.AUTHORIZATION_ROLES.Accounting
]),
name: null
};
@@ -352,18 +352,18 @@ export default {
hasSupervisorRole: function() {
//mirrored from ReviewBiz.cs validation rule at server
/*
CurrentUserRoles.HasFlag(AuthorizationRoles.BizAdminFull) ||
CurrentUserRoles.HasFlag(AuthorizationRoles.ServiceFull) ||
CurrentUserRoles.HasFlag(AuthorizationRoles.InventoryFull) ||
CurrentUserRoles.HasFlag(AuthorizationRoles.SalesFull) ||
CurrentUserRoles.HasFlag(AuthorizationRoles.AccountingFull);
CurrentUserRoles.HasFlag(AuthorizationRoles.BizAdmin) ||
CurrentUserRoles.HasFlag(AuthorizationRoles.Service) ||
CurrentUserRoles.HasFlag(AuthorizationRoles.Inventory) ||
CurrentUserRoles.HasFlag(AuthorizationRoles.Sales) ||
CurrentUserRoles.HasFlag(AuthorizationRoles.Accounting);
*/
return window.$gz.role.hasRole([
window.$gz.role.AUTHORIZATION_ROLES.BizAdminFull,
window.$gz.role.AUTHORIZATION_ROLES.ServiceFull,
window.$gz.role.AUTHORIZATION_ROLES.InventoryFull,
window.$gz.role.AUTHORIZATION_ROLES.SalesFull,
window.$gz.role.AUTHORIZATION_ROLES.AccountingFull
window.$gz.role.AUTHORIZATION_ROLES.BizAdmin,
window.$gz.role.AUTHORIZATION_ROLES.Service,
window.$gz.role.AUTHORIZATION_ROLES.Inventory,
window.$gz.role.AUTHORIZATION_ROLES.Sales,
window.$gz.role.AUTHORIZATION_ROLES.Accounting
]);
}
},

View File

@@ -998,7 +998,7 @@ export default {
},
rights: window.$gz.role.defaultRightsObject(),
canEditSerial: window.$gz.role.hasRole([
window.$gz.role.AUTHORIZATION_ROLES.BizAdminFull
window.$gz.role.AUTHORIZATION_ROLES.BizAdmin
]),
ayaType: window.$gz.type.PurchaseOrder,
currencyName: window.$gz.locale.getCurrencyName(),

View File

@@ -267,33 +267,33 @@ export default {
},
{
name: "Business admin",
l: "BizAdminFull",
p: "BizAdminFull"
l: "BizAdmin",
p: "BizAdmin"
},
{
name: "Business admin - limited",
l: "BizAdminLimited",
p: "BizAdminLimited"
name: "Business admin - restricted",
l: "BizAdminRestricted",
p: "BizAdminRestricted"
},
{
name: "Customer",
l: "CustomerFull",
p: "CustomerFull"
l: "Customer",
p: "Customer"
},
{
name: "Customer - limited",
l: "CustomerLimited",
p: "CustomerLimited"
name: "Customer - restricted",
l: "CustomerRestricted",
p: "CustomerRestricted"
},
{
name: "Service",
l: "ServiceFull",
p: "ServiceFull"
l: "Service",
p: "Service"
},
{
name: "Service - limited",
l: "ServiceLimited",
p: "ServiceLimited"
name: "Service - restricted",
l: "ServiceRestricted",
p: "ServiceRestricted"
},
{
name: "Head office",
@@ -302,53 +302,53 @@ export default {
},
{
name: "Inventory",
l: "InventoryFull",
p: "InventoryFull"
l: "Inventory",
p: "Inventory"
},
{
name: "Inventory - limited",
l: "InventoryLimited",
p: "InventoryLimited"
name: "Inventory - restricted",
l: "InventoryRestricted",
p: "InventoryRestricted"
},
{
name: "Operations",
l: "OpsAdminFull",
p: "OpsAdminFull"
l: "OpsAdmin",
p: "OpsAdmin"
},
{
name: "Operations - limited",
l: "OpsAdminLimited",
p: "OpsAdminLimited"
name: "Operations - restricted",
l: "OpsAdminRestricted",
p: "OpsAdminRestricted"
},
{
name: "Sales",
l: "SalesFull",
p: "SalesFull"
l: "Sales",
p: "Sales"
},
{
name: "Sales - limited",
l: "SalesLimited",
p: "SalesLimited"
name: "Sales - restricted",
l: "SalesRestricted",
p: "SalesRestricted"
},
{
name: "Subcontractor",
l: "SubContractorFull",
p: "SubContractorFull"
l: "SubContractor",
p: "SubContractor"
},
{
name: "Subcontractor - limited",
l: "SubContractorLimited",
p: "SubContractorLimited"
name: "Subcontractor - restricted",
l: "SubContractorRestricted",
p: "SubContractorRestricted"
},
{
name: "Technician",
l: "TechFull",
p: "TechFull"
l: "Tech",
p: "Tech"
},
{
name: "Technician - limited",
l: "TechLimited",
p: "TechLimited"
name: "Technician - restricted",
l: "TechRestricted",
p: "TechRestricted"
},
{
name: "Translation - Deutsch / German",