Skip to content

Commit 0a5a3f1

Browse files
committed
fix recursion
1 parent 40459ba commit 0a5a3f1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cloud-core/src/main/java/org/incendo/cloud/CommandManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,15 +423,15 @@ public boolean hasCapability(final @NonNull CloudCapability capability) {
423423
});
424424
} else if (permission instanceof OrPermission) {
425425
for (final Permission innerPermission : permission.permissions()) {
426-
final PermissionResult result = this.testPermission(sender, innerPermission);
426+
final PermissionResult result = this.testPermission_(sender, innerPermission);
427427
if (result.allowed()) {
428428
return result;
429429
}
430430
}
431431
return PermissionResult.denied(permission);
432432
} else if (permission instanceof AndPermission) {
433433
for (final Permission innerPermission : permission.permissions()) {
434-
final PermissionResult result = this.testPermission(sender, innerPermission);
434+
final PermissionResult result = this.testPermission_(sender, innerPermission);
435435
if (!result.allowed()) {
436436
return result;
437437
}

0 commit comments

Comments
 (0)