Github user necouchman commented on a diff in the pull request:

    https://github.com/apache/guacamole-client/pull/255#discussion_r172003967
  
    --- Diff: 
guacamole/src/main/webapp/app/navigation/services/userPageService.js ---
    @@ -140,13 +144,20 @@ 
angular.module('navigation').factory('userPageService', ['$injector',
             var deferred = $q.defer();
     
             // Resolve promise using home page derived from root connection 
groups
    -        dataSourceService.apply(
    +        var getRootGroups = dataSourceService.apply(
                 connectionGroupService.getConnectionGroupTree,
                 authenticationService.getAvailableDataSources(),
                 ConnectionGroup.ROOT_IDENTIFIER
    -        )
    -        .then(function rootConnectionGroupsRetrieved(rootGroups) {
    -            deferred.resolve(generateHomePage(rootGroups));
    +        );
    +        var getPermissionSets = dataSourceService.apply(
    +            permissionService.getPermissions,
    +            authenticationService.getAvailableDataSources(),
    +            authenticationService.getCurrentUsername()
    +        );
    +
    +        $q.all([getRootGroups,getPermissionSets])
    +        .then(function rootConnectionGroupsPermissionsRetrieved(data) {
    +            deferred.resolve(generateHomePage(data[0],data[1]));
    --- End diff --
    
    Objectified.


---

Reply via email to