mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
Merge pull request #59 from glyptodon/root-consistency
GUAC-964: Ensure connections and connection groups only refer to the root group as "ROOT"
This commit is contained in:
@@ -108,7 +108,7 @@ public class MySQLConnection extends AbstractConnection {
|
|||||||
if (parentID != null)
|
if (parentID != null)
|
||||||
this.setParentIdentifier(String.valueOf(parentID));
|
this.setParentIdentifier(String.valueOf(parentID));
|
||||||
else
|
else
|
||||||
this.setParentIdentifier(null);
|
this.setParentIdentifier(MySQLConstants.CONNECTION_GROUP_ROOT_IDENTIFIER);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -129,7 +129,7 @@ public class MySQLConnectionGroup extends AbstractConnectionGroup {
|
|||||||
if (parentID != null)
|
if (parentID != null)
|
||||||
this.setParentIdentifier(String.valueOf(parentID));
|
this.setParentIdentifier(String.valueOf(parentID));
|
||||||
else
|
else
|
||||||
this.setParentIdentifier(null);
|
this.setParentIdentifier(MySQLConstants.CONNECTION_GROUP_ROOT_IDENTIFIER);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -49,6 +49,20 @@ angular.module('manage').controller('manageController', ['$scope', '$injector',
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* All visible users.
|
||||||
|
*
|
||||||
|
* @type User[]
|
||||||
|
*/
|
||||||
|
$scope.users = null;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The root connection group of the connection group hierarchy.
|
||||||
|
*
|
||||||
|
* @type ConnectionGroup
|
||||||
|
*/
|
||||||
|
$scope.rootGroup = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Whether the current user can manage users. If the current permissions
|
* Whether the current user can manage users. If the current permissions
|
||||||
* have not yet been loaded, this will be null.
|
* have not yet been loaded, this will be null.
|
||||||
|
Reference in New Issue
Block a user