GUACAMOLE-360: deleteObject method should follow documented behavior.

This commit is contained in:
Nick Couchman
2018-06-18 19:15:20 -04:00
parent d2b40e4904
commit 6a1b55a327

View File

@@ -115,8 +115,10 @@ public class ActiveConnectionService
// Close connection, if it exists and we have permission // Close connection, if it exists and we have permission
ActiveConnection activeConnection = retrieveObject(user, identifier); ActiveConnection activeConnection = retrieveObject(user, identifier);
if (activeConnection != null if (activeConnection == null)
&& hasObjectPermissions(user, identifier, ObjectPermission.Type.DELETE)) { return;
if (hasObjectPermissions(user, identifier, ObjectPermission.Type.DELETE)) {
// Close connection if not already closed // Close connection if not already closed
GuacamoleTunnel tunnel = activeConnection.getTunnel(); GuacamoleTunnel tunnel = activeConnection.getTunnel();