mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-11 17:15:07 +02:00
Fix an error I caused trying to modify an unmodifiable list when parsing
'*' permissions.
This commit is contained in:
@@ -163,3 +163,4 @@ v 1.9:
|
|||||||
- Prevent Null entries in group inheritance from throwing errors.
|
- Prevent Null entries in group inheritance from throwing errors.
|
||||||
v 2.0:
|
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.
|
@@ -155,8 +155,10 @@ public class AnjoPermissionsHandler extends PermissionsReaderInterface {
|
|||||||
return playerPermArray;
|
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>();
|
Set<String> permArray = new HashSet<String>();
|
||||||
Boolean allPerms = false;
|
Boolean allPerms = false;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user