From 824b5181e03a344cad27e566885d54b93441c48b Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Thu, 3 Sep 2015 22:25:01 -0700 Subject: [PATCH] GUAC-586: Services must not store stale auth data. --- .../webapp/app/navigation/services/userPageService.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) 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];