Ticket #263: Fixing build by using root group connection directory in CRUD operations.
This commit is contained in:
1 parent
18836df861
commit
bb7aed5c1d
5 files changed
+7
-5
No files matched your search
+2
-1
@@ -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);
|
||||
|
||||
+1
-1
@@ -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();
|
||||
|
||||
+1
-1
@@ -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);
|
||||
|
||||
+2
-1
@@ -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 =
|
||||
|
||||
+1
-1
@@ -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