1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-07-31 20:00:47 +02:00

Allow Exception permission to override negations when in the same group.

This commit is contained in:
ElgarL
2013-07-22 13:29:06 +01:00
committed by KHobbits
parent 389b59515d
commit 80f5972c04

View File

@@ -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));
}
}
}