mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-28 05:35:26 +01:00
Fix negating group permissions to cancel inheritance
This commit is contained in:
parent
a40421fa1f
commit
c598daf350
@ -533,7 +533,7 @@ public abstract class PermissionHolder {
|
||||
if (!n.isGroupNode()) continue;
|
||||
String groupName = n.getGroupName();
|
||||
|
||||
if (!processedGroups.add(groupName) || excludedGroups.contains(groupName)) continue;
|
||||
if (!processedGroups.add(groupName) || excludedGroups.contains(groupName) || !n.getValue()) continue;
|
||||
|
||||
if (!((contexts.isApplyGlobalGroups() || n.isServerSpecific()) && (contexts.isApplyGlobalWorldGroups() || n.isWorldSpecific()))) {
|
||||
continue;
|
||||
@ -611,7 +611,7 @@ public abstract class PermissionHolder {
|
||||
if (!n.isGroupNode()) continue;
|
||||
String groupName = n.getGroupName();
|
||||
|
||||
if (!processedGroups.add(groupName) || excludedGroups.contains(groupName)) continue;
|
||||
if (!processedGroups.add(groupName) || excludedGroups.contains(groupName) || !n.getValue()) continue;
|
||||
|
||||
Group g = plugin.getGroupManager().getIfLoaded(groupName);
|
||||
if (g != null) {
|
||||
@ -759,7 +759,7 @@ public abstract class PermissionHolder {
|
||||
if (!n.isGroupNode()) continue;
|
||||
String groupName = n.getGroupName();
|
||||
|
||||
if (!processedGroups.add(groupName) || excludedGroups.contains(groupName)) continue;
|
||||
if (!processedGroups.add(groupName) || excludedGroups.contains(groupName) || !n.getValue()) continue;
|
||||
|
||||
if (!((contexts.isApplyGlobalGroups() || n.isServerSpecific()) && (contexts.isApplyGlobalWorldGroups() || n.isWorldSpecific()))) {
|
||||
continue;
|
||||
@ -819,7 +819,7 @@ public abstract class PermissionHolder {
|
||||
if (!n.isGroupNode()) continue;
|
||||
String groupName = n.getGroupName();
|
||||
|
||||
if (!processedGroups.add(groupName) || excludedGroups.contains(groupName)) continue;
|
||||
if (!processedGroups.add(groupName) || excludedGroups.contains(groupName) || !n.getValue()) continue;
|
||||
|
||||
Group g = plugin.getGroupManager().getIfLoaded(groupName);
|
||||
if (g != null) {
|
||||
|
Loading…
Reference in New Issue
Block a user