diff options
author | ElgarL <ElgarL@palmergames.com> | 2012-04-05 15:02:08 +0100 |
---|---|---|
committer | ElgarL <ElgarL@palmergames.com> | 2012-04-05 15:02:08 +0100 |
commit | 566f5ff327499debe19ab7b2c70f1eb665993d01 (patch) | |
tree | 717dc8d99e6608f57e3bc5c01a5c73b84906db31 /EssentialsGroupManager | |
parent | 7e1e18ef91887df5229693ba531657687630758b (diff) | |
download | Essentials-566f5ff327499debe19ab7b2c70f1eb665993d01.tar Essentials-566f5ff327499debe19ab7b2c70f1eb665993d01.tar.gz Essentials-566f5ff327499debe19ab7b2c70f1eb665993d01.tar.lz Essentials-566f5ff327499debe19ab7b2c70f1eb665993d01.tar.xz Essentials-566f5ff327499debe19ab7b2c70f1eb665993d01.zip |
Fix an error I caused trying to modify an unmodifiable list when parsing
'*' permissions.
Diffstat (limited to 'EssentialsGroupManager')
-rw-r--r-- | EssentialsGroupManager/src/Changelog.txt | 3 | ||||
-rw-r--r-- | EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/AnjoPermissionsHandler.java | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/EssentialsGroupManager/src/Changelog.txt b/EssentialsGroupManager/src/Changelog.txt index a636ac6fe..c5fe5564d 100644 --- a/EssentialsGroupManager/src/Changelog.txt +++ b/EssentialsGroupManager/src/Changelog.txt @@ -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.
\ No newline at end of file + - 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.
\ No newline at end of file diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/AnjoPermissionsHandler.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/AnjoPermissionsHandler.java index 08240441d..b40694bb0 100644 --- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/AnjoPermissionsHandler.java +++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/AnjoPermissionsHandler.java @@ -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; |