This commit is contained in:
@@ -167,6 +167,14 @@ export default {
|
||||
let r = this.getRights(oType);
|
||||
//convention is change might be defined but not read so canOpen is true eitehr way
|
||||
return r.change == true || r.read == true;
|
||||
},
|
||||
/////////////////////////////////
|
||||
// convenience method for forms that deal with multiple object types
|
||||
// (i.e. grids, history etc, initialization of main menu etc)
|
||||
//
|
||||
canChange(oType) {
|
||||
let r = this.getRights(oType);
|
||||
return r.change == true;
|
||||
}
|
||||
};
|
||||
/*
|
||||
|
||||
@@ -489,7 +489,7 @@ function initNavPanel() {
|
||||
}
|
||||
|
||||
//TRANSLATION
|
||||
if (window.$gz.role.canOpen(window.$gz.type.Translation)) {
|
||||
if (window.$gz.role.canChange(window.$gz.type.Translation)) {
|
||||
sub.push({
|
||||
title: "TranslationList",
|
||||
icon: "$ayiLanguage",
|
||||
@@ -499,7 +499,7 @@ function initNavPanel() {
|
||||
}
|
||||
|
||||
//REPORT TEMPLATES
|
||||
if (window.$gz.role.canOpen(window.$gz.type.Report)) {
|
||||
if (window.$gz.role.canChange(window.$gz.type.Report)) {
|
||||
sub.push({
|
||||
title: "ReportList",
|
||||
icon: "$ayiThList",
|
||||
@@ -568,7 +568,7 @@ function initNavPanel() {
|
||||
}
|
||||
|
||||
// SERVER STATE
|
||||
if (window.$gz.role.canOpen(window.$gz.type.ServerState)) {
|
||||
if (window.$gz.role.canChange(window.$gz.type.ServerState)) {
|
||||
sub.push({
|
||||
title: "ServerState",
|
||||
icon: "$ayiDoorOpen",
|
||||
@@ -627,7 +627,7 @@ function initNavPanel() {
|
||||
}
|
||||
|
||||
// OPS VIEW SERVER CONFIGURATION
|
||||
if (window.$gz.role.canOpen(window.$gz.type.ServerState)) {
|
||||
if (window.$gz.role.canOpen(window.$gz.type.GlobalOps)) {
|
||||
sub.push({
|
||||
title: "ViewServerConfiguration",
|
||||
icon: "$ayiInfoCircle",
|
||||
|
||||
Reference in New Issue
Block a user