diff options
author | ElgarL <ElgarL@Palmergames.com> | 2013-07-22 13:29:06 +0100 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2014-05-04 12:50:08 +0100 |
commit | 80f5972c04708d06fc3c31804655511ff1ddb926 (patch) | |
tree | bf5af0970bafeabe3936443f14dd041d2878b1ab /EssentialsGroupManager | |
parent | 389b59515d130c70374fdd8d38d3e482aa1366ad (diff) | |
download | Essentials-80f5972c04708d06fc3c31804655511ff1ddb926.tar Essentials-80f5972c04708d06fc3c31804655511ff1ddb926.tar.gz Essentials-80f5972c04708d06fc3c31804655511ff1ddb926.tar.lz Essentials-80f5972c04708d06fc3c31804655511ff1ddb926.tar.xz Essentials-80f5972c04708d06fc3c31804655511ff1ddb926.zip |
Allow Exception permission to override negations when in the same group.
Diffstat (limited to 'EssentialsGroupManager')
-rw-r--r-- | EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/AnjoPermissionsHandler.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/AnjoPermissionsHandler.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/AnjoPermissionsHandler.java index 069289c93..39ad300e0 100644 --- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/AnjoPermissionsHandler.java +++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/AnjoPermissionsHandler.java @@ -151,6 +151,10 @@ public class AnjoPermissionsHandler extends PermissionsReaderInterface { // or It's a negated perm where a normal perm doesn't exists (don't allow inheritance to negate higher perms) if ((!negated && !playerPermArray.contains(perm) && !wildcardNegation(playerPermArray, perm)) || (negated && !playerPermArray.contains(perm.substring(1)) && !wildcardNegation(playerPermArray, perm.substring(1)))) playerPermArray.add(perm); + + if (perm.startsWith("+") && wildcardNegation(groupPermArray, perm.substring(1))) { + playerPermArray.add(perm.substring(1)); + } } } |