From af1a5162abb090a5a7b1d30e19ab8fca39772f65 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 9 Dec 2020 00:58:01 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 5 ----- ayanova/src/api/initialize.js | 4 ++++ ayanova/src/views/cust-user.vue | 4 ++-- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index cb2bf6b9..cc0abcba 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -6,11 +6,6 @@ MISC ITEMS THAT CAME UP -todo: deleting HeadOffice must attempt to delete all contacts too - -todo: test Contact vs User rights on routes - - todo: Initialize has an expired license section that prevents all other options except fixing the license however I think this is supposed to switch to readonly mode in most cases unless it's a rental license? diff --git a/ayanova/src/api/initialize.js b/ayanova/src/api/initialize.js index 4d5f45aa..0be2b262 100644 --- a/ayanova/src/api/initialize.js +++ b/ayanova/src/api/initialize.js @@ -99,6 +99,10 @@ function initNavPanel() { //###### EXPIRED LICENSE GROUP //Status NONE, EXPIREDTRIAL, EXPIREDPURCHASE, REVOKED + + //So an expired purchased is a Rental type license and perpetual do not expire ever so this is kosher + //we used to allow read only access when expired but this is more dramatic and we can always issue a one day license if they need it for something + //and we're feeling generous so leaving as is for now //only show license and logout /* public enum LicenseStatus { diff --git a/ayanova/src/views/cust-user.vue b/ayanova/src/views/cust-user.vue index bc75c32d..3ad7b0a4 100644 --- a/ayanova/src/views/cust-user.vue +++ b/ayanova/src/views/cust-user.vue @@ -407,8 +407,8 @@ export default { let vm = this; try { await initForm(vm); - - vm.rights = window.$gz.role.getRights(window.$gz.type.User); + //## NOTE: This is a Contact form so follows Customer rights even though User object + vm.rights = window.$gz.role.getRights(window.$gz.type.Customer); vm.formState.readOnly = !vm.rights.change; window.$gz.eventBus.$on("menu-click", clickHandler);