Ticket #263: Make sure to compare the correct object types in the group usage test.

This commit is contained in:
James Muehlner
2013-08-15 01:19:19 -07:00
parent a5d22cb10d
commit 87b1b56b7f

View File

@@ -347,7 +347,8 @@ public class PermissionCheckService {
return false;
// Verify that the desired usage matches the type.
return connectionGroup.getType().equals(usage);
return MySQLConstants.getConnectionGroupTypeConstant(
connectionGroup.getType()).equals(usage);
}