mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-07 05:31:22 +00:00
Ticket #263: Fixing build by using root group connection directory in CRUD operations.
This commit is contained in:
@@ -195,7 +195,8 @@ public class BasicGuacamoleTunnelServlet extends AuthenticatingHttpServlet {
|
|||||||
throw new GuacamoleSecurityException("Cannot connect - user not logged in.");
|
throw new GuacamoleSecurityException("Cannot connect - user not logged in.");
|
||||||
|
|
||||||
// Get connection directory
|
// Get connection directory
|
||||||
Directory<String, Connection> directory = context.getConnectionDirectory();
|
Directory<String, Connection> directory =
|
||||||
|
context.getRootConnectionGroup().getConnectionDirectory();
|
||||||
|
|
||||||
// Get authorized connection
|
// Get authorized connection
|
||||||
Connection connection = directory.get(id);
|
Connection connection = directory.get(id);
|
||||||
|
@@ -53,7 +53,7 @@ public class Create extends AuthenticatingHttpServlet {
|
|||||||
|
|
||||||
// Attempt to get connection directory
|
// Attempt to get connection directory
|
||||||
Directory<String, Connection> directory =
|
Directory<String, Connection> directory =
|
||||||
context.getConnectionDirectory();
|
context.getRootConnectionGroup().getConnectionDirectory();
|
||||||
|
|
||||||
// Create config
|
// Create config
|
||||||
GuacamoleConfiguration config = new GuacamoleConfiguration();
|
GuacamoleConfiguration config = new GuacamoleConfiguration();
|
||||||
|
@@ -44,7 +44,7 @@ public class Delete extends AuthenticatingHttpServlet {
|
|||||||
|
|
||||||
// Attempt to get connection directory
|
// Attempt to get connection directory
|
||||||
Directory<String, Connection> directory =
|
Directory<String, Connection> directory =
|
||||||
context.getConnectionDirectory();
|
context.getRootConnectionGroup().getConnectionDirectory();
|
||||||
|
|
||||||
// Remove connection
|
// Remove connection
|
||||||
directory.remove(identifier);
|
directory.remove(identifier);
|
||||||
|
@@ -97,7 +97,8 @@ public class List extends AuthenticatingHttpServlet {
|
|||||||
response.setCharacterEncoding("UTF-8");
|
response.setCharacterEncoding("UTF-8");
|
||||||
|
|
||||||
// Get connection directory
|
// Get connection directory
|
||||||
Directory<String, Connection> directory = context.getConnectionDirectory();
|
Directory<String, Connection> directory =
|
||||||
|
context.getRootConnectionGroup().getConnectionDirectory();
|
||||||
|
|
||||||
// Sys-admin permission
|
// Sys-admin permission
|
||||||
Permission systemPermission =
|
Permission systemPermission =
|
||||||
|
@@ -53,7 +53,7 @@ public class Update extends AuthenticatingHttpServlet {
|
|||||||
|
|
||||||
// Attempt to get connection directory
|
// Attempt to get connection directory
|
||||||
Directory<String, Connection> directory =
|
Directory<String, Connection> directory =
|
||||||
context.getConnectionDirectory();
|
context.getRootConnectionGroup().getConnectionDirectory();
|
||||||
|
|
||||||
// Create config
|
// Create config
|
||||||
GuacamoleConfiguration config = new GuacamoleConfiguration();
|
GuacamoleConfiguration config = new GuacamoleConfiguration();
|
||||||
|
Reference in New Issue
Block a user