mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2026-11-19 18:49:38 +00:00
Don't include global groups when global permissions are requested
This commit is contained in:
1 parent
20f34d9b45
commit
00c3a8b415
1 file changed
+3
-1
@@ -187,6 +187,9 @@ public abstract class PermissionObject {
|
||||
continue;
|
||||
}
|
||||
|
||||
// Skip adding global permissions if they are not requested
|
||||
if (!includeGlobal) continue;
|
||||
|
||||
if (node.getKey().matches("luckperms\\.group\\..*")) {
|
||||
// GROUP
|
||||
groupNodes.put(node.getKey(), node.getValue());
|
||||
@@ -194,7 +197,6 @@ public abstract class PermissionObject {
|
||||
}
|
||||
|
||||
// JUST NORMAL
|
||||
if (!includeGlobal) continue;
|
||||
userNodes.put(node.getKey(), node.getValue());
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user