bugbug - was checking against bizadminfull role which no longer exists and sb just bizadmin, checked for any other cases similar using full but found none beyond what was fixed here.

This commit is contained in:
2022-08-17 21:12:44 +00:00
parent ed23e20853
commit c55e8f0cbd
5 changed files with 9 additions and 4 deletions

View File

@@ -49,6 +49,8 @@ export default {
return false;
}
//array form?
// eslint-disable-next-line no-debugger
debugger;
if (Array.isArray(desiredRole)) {
//it's an array of roles, iterate and if any are present then return true
for (let i = 0; i < desiredRole.length; i++) {

View File

@@ -611,7 +611,10 @@ function initNavPanel() {
}
// LICENSE
if (window.$gz.role.canOpen(window.$gz.type.License)) {
//special work around here as Integration addition requires all roles to read license but that exposes it in the UI so instead of checking by rights
//sb limited to BizAdmin full only
//if (window.$gz.role.canOpen(window.$gz.type.License)) {
if (window.$gz.role.hasRole([window.$gz.role.AUTHORIZATION_ROLES.BizAdmin])) {
sub.push({
title: "HelpLicense",
icon: "$ayiTicket",

View File

@@ -483,7 +483,7 @@ export default {
data() {
return {
canEditSerial: window.$gz.role.hasRole([
window.$gz.role.AUTHORIZATION_ROLES.BizAdminFull
window.$gz.role.AUTHORIZATION_ROLES.BizAdmin
])
};
},

View File

@@ -496,7 +496,7 @@ export default {
data() {
return {
canEditSerial: window.$gz.role.hasRole([
window.$gz.role.AUTHORIZATION_ROLES.BizAdminFull
window.$gz.role.AUTHORIZATION_ROLES.BizAdmin
])
};
},

View File

@@ -474,7 +474,7 @@ export default {
data() {
return {
canEditSerial: window.$gz.role.hasRole([
window.$gz.role.AUTHORIZATION_ROLES.BizAdminFull
window.$gz.role.AUTHORIZATION_ROLES.BizAdmin
])
};
},