GUAC-1101: Fix connection-related comments.

This commit is contained in:
Michael Jumper
2015-02-27 14:01:49 -08:00
parent ac14cf0ff3
commit 872607eb2c
2 changed files with 3 additions and 3 deletions

View File

@@ -42,8 +42,8 @@ import org.mybatis.guice.transactional.Transactional;
public class ConnectionDirectory implements Directory<Connection> { public class ConnectionDirectory implements Directory<Connection> {
/** /**
* The user this user directory belongs to. Access is based on his/her * The user this connection directory belongs to. Access is based on
* permission settings. * his/her permission settings.
*/ */
private AuthenticatedUser currentUser; private AuthenticatedUser currentUser;

View File

@@ -124,7 +124,7 @@ public class ConnectionService extends DirectoryObjectService<MySQLConnection, C
protected boolean hasCreatePermission(AuthenticatedUser user) protected boolean hasCreatePermission(AuthenticatedUser user)
throws GuacamoleException { throws GuacamoleException {
// Return whether user has explicit user creation permission // Return whether user has explicit connection creation permission
SystemPermissionSet permissionSet = user.getUser().getSystemPermissions(); SystemPermissionSet permissionSet = user.getUser().getSystemPermissions();
return permissionSet.hasPermission(SystemPermission.Type.CREATE_CONNECTION); return permissionSet.hasPermission(SystemPermission.Type.CREATE_CONNECTION);