GUAC-586: Services must not store stale auth data.

This commit is contained in:
Michael Jumper
2015-09-03 22:25:01 -07:00
parent 69b9a80441
commit 824b5181e0

View File

@@ -53,14 +53,6 @@ angular.module('navigation').factory('userPageService', ['$injector',
url : '/' 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. * Returns an appropriate home page for the current user.
* *
@@ -184,7 +176,7 @@ angular.module('navigation').factory('userPageService', ['$injector',
var canManageSessions = []; var canManageSessions = [];
// Inspect the contents of each provided permission set // 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 // Get permissions for current data source, skipping if non-existent
var permissions = permissionSets[dataSource]; var permissions = permissionSets[dataSource];