Correct the case of group names when retrieved from Node instances

This commit is contained in:
Luck 2017-03-18 14:43:34 +00:00
parent 407ab43dd1
commit a0aec52661
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -225,7 +225,7 @@ public class ImmutableNode implements Node {
// Setup state // Setup state
isGroup = this.permission.toLowerCase().startsWith("group."); isGroup = this.permission.toLowerCase().startsWith("group.");
if (isGroup) { if (isGroup) {
groupName = this.permission.substring("group.".length()); groupName = this.permission.substring("group.".length()).toLowerCase();
} }
isWildcard = this.permission.endsWith(".*"); isWildcard = this.permission.endsWith(".*");