From 3420182a511a7305a90597da4e39616aa1ff27a2 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 2 Apr 2020 23:19:18 +0000 Subject: [PATCH] Fixed initialize bug for customer login --- ayanova/devdocs/todo.txt | 2 +- ayanova/src/api/initialize.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 9b3c3f32..44205157 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -63,7 +63,7 @@ todo: add tests for the following: - datafilter form - picklist editor form - +todo: ABOUT form customer user type 4 or 5 should NOT show any License block, License options block. Keep server block it might help troubleshoot todo: new widget - There should be a new option (in addition to duplicate) within the existing widget form because it makes sense to want to make a new one while editing previous one - Plus you could have arrived there from anywhere, don't want to have to reload a big list just to add a new one diff --git a/ayanova/src/api/initialize.js b/ayanova/src/api/initialize.js index 165b5ef6..1341bfa1 100644 --- a/ayanova/src/api/initialize.js +++ b/ayanova/src/api/initialize.js @@ -711,7 +711,8 @@ export default function initialize() { window.$gz.role.AUTHORIZATION_ROLES.CustomerFull, window.$gz.role.AUTHORIZATION_ROLES.CustomerLimited ]) && - (window.$gz.store.userType == 4 || window.$gz.store.userType == 5) + (window.$gz.store.state.userType == 4 || + window.$gz.store.state.userType == 5) ) { //clear sublevel array sub = [];