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:
@@ -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++) {
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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
|
||||
])
|
||||
};
|
||||
},
|
||||
|
||||
@@ -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
|
||||
])
|
||||
};
|
||||
},
|
||||
|
||||
@@ -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
|
||||
])
|
||||
};
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user