This commit is contained in:
2020-12-09 00:58:01 +00:00
parent 54cf47d3d0
commit af1a5162ab
3 changed files with 6 additions and 7 deletions

View File

@@ -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?

View File

@@ -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
{

View File

@@ -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);