diff --git a/guacamole/src/main/webapp/app/navigation/services/userPageService.js b/guacamole/src/main/webapp/app/navigation/services/userPageService.js index d42b0381a..114ee2efb 100644 --- a/guacamole/src/main/webapp/app/navigation/services/userPageService.js +++ b/guacamole/src/main/webapp/app/navigation/services/userPageService.js @@ -53,14 +53,6 @@ angular.module('navigation').factory('userPageService', ['$injector', url : '/' }); - /** - * The identifiers of all data sources currently available to the - * authenticated user. - * - * @type String[] - */ - var dataSources = authenticationService.getAvailableDataSources(); - /** * Returns an appropriate home page for the current user. * @@ -184,7 +176,7 @@ angular.module('navigation').factory('userPageService', ['$injector', var canManageSessions = []; // Inspect the contents of each provided permission set - angular.forEach(dataSources, function inspectPermissions(dataSource) { + angular.forEach(authenticationService.getAvailableDataSources(), function inspectPermissions(dataSource) { // Get permissions for current data source, skipping if non-existent var permissions = permissionSets[dataSource];