fix #477: default vpd permission filter

This commit is contained in:
devmrko
2026-06-26 05:44:51 +09:00
parent 91b03ed952
commit e806a92e98
4 changed files with 38 additions and 15 deletions

View File

@@ -9,4 +9,12 @@ public record VpdPolicyFormOptions(
List<VpdFunctionOption> functions,
List<String> statementTypes
) {
public String defaultPermissionFunctionKey() {
return functions.stream()
.filter(function -> "CB_AGENT_DOC_VPD_FILTER".equalsIgnoreCase(function.functionName()))
.findFirst()
.map(VpdFunctionOption::value)
.orElse("");
}
}