mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +00:00
GUACAMOLE-360: deleteObject method should follow documented behavior.
This commit is contained in:
@@ -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();
|
||||||
|
Reference in New Issue
Block a user