This commit is contained in:
2020-06-11 15:24:43 +00:00
parent 4a7223985c
commit f24e327e24
2 changed files with 22 additions and 2 deletions

View File

@@ -21,6 +21,23 @@ function initNavPanel() {
let t = window.$gz.translation.get;
let role = window.$gz.role.AUTHORIZATION_ROLES;
//******* REVOKE
//Status 5 = revoked, they need to know and have a path to unrevocation
//only allow license and logout
if (window.$gz.store.state.globalSettings.licenseStatus == 5) {
addNavItem(
t("HelpLicense"),
"fa-ticket-alt",
"/adm-license",
[],
key++,
"license"
);
addNavItem(t("Logout"), "fa-sign-out-alt", "/login", [], key++, "logout");
window.$gz.store.commit("setHomePage", "/adm-license");
return;
}
//******* LAUNCH
//if it's an empty db then only the launch page is available
if (window.$gz.store.state.globalSettings.licenseStatus == 0) {