Fix finer permission checking filter

This commit is contained in:
Ben Woo 2024-11-21 22:28:10 +08:00
parent b434903739
commit 0cc1676e6c

View File

@ -62,7 +62,7 @@ public class CorePermissionsChecker {
// TODO: Config whether to use finer permission
return destination.getFinerPermissionSuffix()
.filter(String::isBlank)
.filter(finerPermissionSuffix -> !finerPermissionSuffix.isEmpty())
.map(finerPermissionSuffix -> hasPermission(
teleporter,
concatPermission(permission, finerPermissionSuffix)