Fix an error I caused trying to modify an unmodifiable list when parsing

'*' permissions.
This commit is contained in:
ElgarL 2012-04-05 15:02:08 +01:00
parent 381886245b
commit f7bc04bc34
2 changed files with 5 additions and 2 deletions

View file

@ -162,4 +162,5 @@ v 1.9:
using GroupManager commands (they will still require each commands permission node to use them).
- Prevent Null entries in group inheritance from throwing errors.
v 2.0:
- Fix GM reporting of permission inheritance to retain the correct order. Lower inheritance groups can no longer negate a higher groups permissions.
- Fix GM reporting of permission inheritance to retain the correct order. Lower inheritance groups can no longer negate a higher groups permissions.
- Fix an error I caused trying to modify an unmodifiable list when parsing '*' permissions.

View file

@ -155,8 +155,10 @@ public class AnjoPermissionsHandler extends PermissionsReaderInterface {
return playerPermArray;
}
private Set<String> populatePerms (List<String> perms, boolean includeChildren) {
private Set<String> populatePerms (List<String> permsList, boolean includeChildren) {
// Create a new array so it's modifiable.
List<String> perms = new ArrayList<String>(permsList);
Set<String> permArray = new HashSet<String>();
Boolean allPerms = false;