Merge pull request #178 from jaredevantabor/config-race-condition

fixing race condition with config service
This commit is contained in:
Jared Tabor 2017-08-07 09:53:53 -07:00 committed by GitHub
commit ea0edb13eb

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