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

View File

@@ -344,11 +344,10 @@ var awApp = angular.module('awApp', [
Authorization.restoreUserInfo(); //user must have hit browser refresh Authorization.restoreUserInfo(); //user must have hit browser refresh
} }
if (next && (next.name !== "signIn" && next.name !== "signOut" && next.name !== "license")) { 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 // if not headed to /login or /logout, then check the license
CheckLicense.test(event); CheckLicense.test(event);
} });
} }
} }
activateTab(); activateTab();