From 5f710a86aff74f104665aa370e67cb15b5470356 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Mon, 4 Mar 2013 01:14:35 -0800 Subject: [PATCH] Ticket #269: Fix that darn typo where we copy the user retrieval code, replace all "user" with "connection", forget a line, and it fails utterly. --- .../net/auth/mysql/service/PermissionCheckService.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/extensions/guacamole-auth-mysql/src/main/java/net/sourceforge/guacamole/net/auth/mysql/service/PermissionCheckService.java b/extensions/guacamole-auth-mysql/src/main/java/net/sourceforge/guacamole/net/auth/mysql/service/PermissionCheckService.java index 51ead4284..ae3a11387 100644 --- a/extensions/guacamole-auth-mysql/src/main/java/net/sourceforge/guacamole/net/auth/mysql/service/PermissionCheckService.java +++ b/extensions/guacamole-auth-mysql/src/main/java/net/sourceforge/guacamole/net/auth/mysql/service/PermissionCheckService.java @@ -318,13 +318,13 @@ public class PermissionCheckService { } /** - * Retrieve all existing usernames that the given user has permission to - * perform the given operation upon. + * Retrieve all existing connection names that the given user has permission + * to perform the given operation upon. * * @param userID The user whose permissions should be checked. * @param permissionType The permission to check. - * @return A set of all usernames for which the given user has the given - * permission. + * @return A set of all connection names for which the given user has the + * given permission. */ public Set retrieveConnectionNames(int userID, String permissionType) { @@ -334,7 +334,7 @@ public class PermissionCheckService { // List of all connection IDs for which this connection has read access List connectionIDs = - retrieveUserIDs(userID, MySQLConstants.CONNECTION_READ); + retrieveConnectionIDs(userID, MySQLConstants.CONNECTION_READ); // Query all associated connections return connectionService.translateNames(connectionIDs).keySet();