From 73c118b9142abaf83d2d42e36af66e50ca245bf5 Mon Sep 17 00:00:00 2001 From: Jared Tabor Date: Thu, 3 Aug 2017 12:33:10 -0700 Subject: [PATCH] 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. --- awx/ui/client/src/app.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/awx/ui/client/src/app.js b/awx/ui/client/src/app.js index 520c9bf7e1..00fa2a3cf7 100644 --- a/awx/ui/client/src/app.js +++ b/awx/ui/client/src/app.js @@ -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();