Fixed initialize bug for customer login

This commit is contained in:
2020-04-02 23:19:18 +00:00
parent c3495a7c0d
commit 3420182a51
2 changed files with 3 additions and 2 deletions

View File

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

View File

@@ -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 = [];