diff --git a/guacamole/src/main/webapp/app/navigation/services/userPageService.js b/guacamole/src/main/webapp/app/navigation/services/userPageService.js index 6100237f0..b9144a6a8 100644 --- a/guacamole/src/main/webapp/app/navigation/services/userPageService.js +++ b/guacamole/src/main/webapp/app/navigation/services/userPageService.js @@ -163,9 +163,12 @@ angular.module('navigation').factory('userPageService', ['$injector', authenticationService.getCurrentUsername() ); - $q.all([getRootGroups,getPermissionSets]) + $q.all({ + rootGroups : getRootGroups, + permissionsSets : getPermissionSets + }) .then(function rootConnectionGroupsPermissionsRetrieved(data) { - deferred.resolve(generateHomePage(data[0],data[1])); + deferred.resolve(generateHomePage(data.rootGroups,data.permissionsSets)); }); return deferred.promise;