fixing race condition with config service

for enterprise/basic licenses, the user should be immediately routed
to the license page if they do not have a license.
This commit is contained in:
Jared Tabor 2017-08-03 12:33:10 -07:00
parent a87f6bfe62
commit 73c118b914

View File

@ -344,11 +344,10 @@ var awApp = angular.module('awApp', [
Authorization.restoreUserInfo(); //user must have hit browser refresh
}
if (next && (next.name !== "signIn" && next.name !== "signOut" && next.name !== "license")) {
if($rootScope.configReady === true){
ConfigService.getConfig().then(function() {
// if not headed to /login or /logout, then check the license
CheckLicense.test(event);
}
});
}
}
activateTab();