mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 02:19:58 -03:30
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:
parent
a87f6bfe62
commit
73c118b914
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user