diff --git a/guacamole-ext/src/main/java/net/sourceforge/guacamole/net/auth/permission/UserPermission.java b/guacamole-ext/src/main/java/net/sourceforge/guacamole/net/auth/permission/UserPermission.java index 3029aeb40..965e56abb 100644 --- a/guacamole-ext/src/main/java/net/sourceforge/guacamole/net/auth/permission/UserPermission.java +++ b/guacamole-ext/src/main/java/net/sourceforge/guacamole/net/auth/permission/UserPermission.java @@ -46,12 +46,13 @@ import net.sourceforge.guacamole.net.auth.User; * * @author Michael Jumper */ -public class UserPermission implements ObjectPermission { +public class UserPermission implements ObjectPermission { /** - * The User associated with the operation affected by this permission. + * The username of the User associated with the operation affected by this + * permission. */ - private User subject; + private String subject; /** * The type of operation affected by this permission. @@ -62,10 +63,10 @@ public class UserPermission implements ObjectPermission { * Creates a new UserPermission having the given type and subject. * * @param type The type of operation affected by this permission. - * @param subject The User associated with the operation affected by this - * permission. + * @param subject The username of the User associated with the operation + * affected by this permission. */ - public UserPermission(User subject, Type type) { + public UserPermission(String subject, Type type) { this.subject = subject; this.type = type; @@ -73,7 +74,7 @@ public class UserPermission implements ObjectPermission { } @Override - public User getSubject() { + public String getSubject() { return subject; }