mirror of
https://github.com/ansible/awx.git
synced 2026-03-05 10:41:05 -03:30
Merge pull request #166 from gconsidine/ui/fix/explosion
Fix route protection that led to infinite redirect
This commit is contained in:
@@ -21,7 +21,9 @@ export default {
|
|||||||
onEnter: ['$state', 'ConfigService', (state, configService) => {
|
onEnter: ['$state', 'ConfigService', (state, configService) => {
|
||||||
return configService.getConfig()
|
return configService.getConfig()
|
||||||
.then(config => {
|
.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: {
|
resolve: {
|
||||||
|
|||||||
Reference in New Issue
Block a user