From 0d7fc9725967c4328e8fb1db403670663aa31412 Mon Sep 17 00:00:00 2001 From: gconsidine Date: Wed, 2 Aug 2017 17:21:00 -0400 Subject: [PATCH] Fix route protection that led to infinite redirect * On login without license data, the user is redirected to the license page. The license route checked for a condition and returned false. Explicitly returning false redirects the user -- omitting a return value lets the user proceed. --- awx/ui/client/src/license/license.route.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/awx/ui/client/src/license/license.route.js b/awx/ui/client/src/license/license.route.js index 629bab4093..48da62fe97 100644 --- a/awx/ui/client/src/license/license.route.js +++ b/awx/ui/client/src/license/license.route.js @@ -21,7 +21,9 @@ export default { onEnter: ['$state', 'ConfigService', (state, configService) => { return configService.getConfig() .then(config => { - return _.get(config, 'license_info.license_type') === 'open' && state.go('setup'); + if (_.get(config, 'license_info.license_type') === 'open') { + return state.go('setup'); + } }); }], resolve: {