mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +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.");
|
||||
|
||||
// Get connection directory
|
||||
Directory<String, Connection> directory = context.getConnectionDirectory();
|
||||
Directory<String, Connection> directory =
|
||||
context.getRootConnectionGroup().getConnectionDirectory();
|
||||
|
||||
// Get authorized connection
|
||||
Connection connection = directory.get(id);
|
||||
|
@@ -53,7 +53,7 @@ public class Create extends AuthenticatingHttpServlet {
|
||||
|
||||
// Attempt to get connection directory
|
||||
Directory<String, Connection> directory =
|
||||
context.getConnectionDirectory();
|
||||
context.getRootConnectionGroup().getConnectionDirectory();
|
||||
|
||||
// Create config
|
||||
GuacamoleConfiguration config = new GuacamoleConfiguration();
|
||||
|
@@ -44,7 +44,7 @@ public class Delete extends AuthenticatingHttpServlet {
|
||||
|
||||
// Attempt to get connection directory
|
||||
Directory<String, Connection> directory =
|
||||
context.getConnectionDirectory();
|
||||
context.getRootConnectionGroup().getConnectionDirectory();
|
||||
|
||||
// Remove connection
|
||||
directory.remove(identifier);
|
||||
|
@@ -97,7 +97,8 @@ public class List extends AuthenticatingHttpServlet {
|
||||
response.setCharacterEncoding("UTF-8");
|
||||
|
||||
// Get connection directory
|
||||
Directory<String, Connection> directory = context.getConnectionDirectory();
|
||||
Directory<String, Connection> directory =
|
||||
context.getRootConnectionGroup().getConnectionDirectory();
|
||||
|
||||
// Sys-admin permission
|
||||
Permission systemPermission =
|
||||
|
@@ -53,7 +53,7 @@ public class Update extends AuthenticatingHttpServlet {
|
||||
|
||||
// Attempt to get connection directory
|
||||
Directory<String, Connection> directory =
|
||||
context.getConnectionDirectory();
|
||||
context.getRootConnectionGroup().getConnectionDirectory();
|
||||
|
||||
// Create config
|
||||
GuacamoleConfiguration config = new GuacamoleConfiguration();
|
||||
|
Reference in New Issue
Block a user