mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 05:07:41 +00:00
GUAC-586: Return an empty array for getAvailableDataSources() if no auth data is present.
This commit is contained in:
@@ -321,7 +321,7 @@ angular.module('auth').factory('authenticationService', ['$injector',
|
||||
*
|
||||
* @returns {String[]}
|
||||
* The identifiers of all data sources availble to the current user,
|
||||
* or null if no authentication data is present.
|
||||
* or an empty array if no authentication data is present.
|
||||
*/
|
||||
service.getAvailableDataSources = function getAvailableDataSources() {
|
||||
|
||||
@@ -331,7 +331,7 @@ angular.module('auth').factory('authenticationService', ['$injector',
|
||||
return authData.availableDataSources;
|
||||
|
||||
// No auth data present
|
||||
return null;
|
||||
return [];
|
||||
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user