mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-30 22:53:27 +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;
|
if (!n.isGroupNode()) continue;
|
||||||
String groupName = n.getGroupName();
|
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()))) {
|
if (!((contexts.isApplyGlobalGroups() || n.isServerSpecific()) && (contexts.isApplyGlobalWorldGroups() || n.isWorldSpecific()))) {
|
||||||
continue;
|
continue;
|
||||||
@ -611,7 +611,7 @@ public abstract class PermissionHolder {
|
|||||||
if (!n.isGroupNode()) continue;
|
if (!n.isGroupNode()) continue;
|
||||||
String groupName = n.getGroupName();
|
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);
|
Group g = plugin.getGroupManager().getIfLoaded(groupName);
|
||||||
if (g != null) {
|
if (g != null) {
|
||||||
@ -759,7 +759,7 @@ public abstract class PermissionHolder {
|
|||||||
if (!n.isGroupNode()) continue;
|
if (!n.isGroupNode()) continue;
|
||||||
String groupName = n.getGroupName();
|
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()))) {
|
if (!((contexts.isApplyGlobalGroups() || n.isServerSpecific()) && (contexts.isApplyGlobalWorldGroups() || n.isWorldSpecific()))) {
|
||||||
continue;
|
continue;
|
||||||
@ -819,7 +819,7 @@ public abstract class PermissionHolder {
|
|||||||
if (!n.isGroupNode()) continue;
|
if (!n.isGroupNode()) continue;
|
||||||
String groupName = n.getGroupName();
|
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);
|
Group g = plugin.getGroupManager().getIfLoaded(groupName);
|
||||||
if (g != null) {
|
if (g != null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user