mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 03:10:42 -03:30
Merge pull request #166 from gconsidine/ui/fix/explosion
Fix route protection that led to infinite redirect
This commit is contained in:
commit
4e1363dd98
@ -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: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user