From 4a5f271702c0777849b615848b168ea8d0a36168 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Thu, 27 Sep 2018 19:45:30 -0700 Subject: [PATCH] GUACAMOLE-220: Correct user vs. entity wording in documentation. --- .../auth/jdbc/permission/PermissionService.java | 2 +- .../jdbc/permission/SystemPermissionService.java | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/java/org/apache/guacamole/auth/jdbc/permission/PermissionService.java b/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/java/org/apache/guacamole/auth/jdbc/permission/PermissionService.java index 5d88887e7..a48157ebc 100644 --- a/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/java/org/apache/guacamole/auth/jdbc/permission/PermissionService.java +++ b/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/java/org/apache/guacamole/auth/jdbc/permission/PermissionService.java @@ -136,7 +136,7 @@ public interface PermissionService targetEntity, Set effectiveGroups) throws GuacamoleException { - // Create permission set for requested user + // Create permission set for requested entity SystemPermissionSet permissionSet = systemPermissionSetProvider.get(); permissionSet.init(user, targetEntity, effectiveGroups); @@ -144,13 +144,13 @@ public class SystemPermissionService * * @param effectiveGroups * The identifiers of all groups that should be taken into account - * when determining the permissions effectively granted to the user. If - * no groups are given, only permissions directly granted to the user - * will be used. + * when determining the permissions effectively granted to the entity. + * If no groups are given, only permissions directly granted to the + * entity will be used. * * @return * true if permission of the given type has been granted to the given - * user, false otherwise. + * entity, false otherwise. * * @throws GuacamoleException * If an error occurs while retrieving the requested permission. @@ -164,7 +164,7 @@ public class SystemPermissionService if (canReadPermissions(user, targetEntity)) return getPermissionMapper().selectOne(targetEntity.getModel(), type, effectiveGroups) != null; - // User cannot read this user's permissions + // User cannot read this entity's permissions throw new GuacamoleSecurityException("Permission denied."); }