GUAC-1126: Re-route user within route config.

This commit is contained in:
Michael Jumper
2015-04-06 17:02:04 -07:00
parent ca8379d938
commit 8ead3a9d81
3 changed files with 54 additions and 11 deletions

View File

@@ -32,7 +32,6 @@ angular.module('home').controller('homeController', ['$scope', '$injector',
// Get required services
var authenticationService = $injector.get("authenticationService");
var connectionGroupService = $injector.get("connectionGroupService");
var userPageService = $injector.get("userPageService");
/**
* The root connection group, or null if the connection group hierarchy has
@@ -61,10 +60,4 @@ angular.module('home').controller('homeController', ['$scope', '$injector',
$scope.rootConnectionGroup = rootConnectionGroup;
});
// Navigate to home page, if not already there
userPageService.getHomePage()
.then(function homePageRetrieved(homePage) {
$location.url(homePage.url);
});
}]);