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:
commit
17a699e7f5
3 files changed
+16
-2
No files matched your search
+1
-1
@@ -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);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -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