Ticket #395: Fixed some small bugs.

This commit is contained in:
James Muehlner
2013-08-16 21:33:26 -07:00
parent 32c09e9dae
commit d8e8eae489

View File

@@ -246,8 +246,10 @@ public class PermissionCheckService {
*/
public boolean checkConnectionGroupAccess(int userID, Integer affectedConnectionGroupID, String permissionType) {
// All users have implicit permission to use the root group
if(affectedConnectionGroupID == null)
// All users have implicit permission to read and update the root connection group
if(affectedConnectionGroupID == null &&
MySQLConstants.CONNECTION_GROUP_READ.equals(permissionType) ||
MySQLConstants.CONNECTION_GROUP_UPDATE.equals(permissionType))
return true;
// A system administrator has full access to everything.