This is an automated email from the ASF dual-hosted git repository. ahuber pushed a commit to branch v4 in repository https://gitbox.apache.org/repos/asf/causeway.git
commit b54091a7deec87237e24847d9aaa8df757e1370a Author: Andi Huber <ahu...@apache.org> AuthorDate: Wed Sep 3 12:20:26 2025 +0200 CAUSEWAY-3892: circumvent bug in visibility checks when pass-through --- .../apache/causeway/core/metamodel/tabular/simple/DataRow.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/core/metamodel/src/main/java/org/apache/causeway/core/metamodel/tabular/simple/DataRow.java b/core/metamodel/src/main/java/org/apache/causeway/core/metamodel/tabular/simple/DataRow.java index 45b2ab80f22..2a04a67a2bd 100644 --- a/core/metamodel/src/main/java/org/apache/causeway/core/metamodel/tabular/simple/DataRow.java +++ b/core/metamodel/src/main/java/org/apache/causeway/core/metamodel/tabular/simple/DataRow.java @@ -45,14 +45,18 @@ public Can<ManagedObject> getCellElements( return assoc.getSpecialization().fold( property-> Can.of( // similar to ManagedProperty#reassessPropertyValue - property.isVisible(rowElement(), interactionInitiatedBy, Where.ALL_TABLES).isAllowed() + interactionInitiatedBy.isPassThrough() + || property.isVisible(rowElement(), interactionInitiatedBy, Where.ALL_TABLES).isAllowed() ? property.get(rowElement(), interactionInitiatedBy) : ManagedObject.empty(property.getElementType())), collection-> ManagedObjects.unpack( - collection.isVisible(rowElement(), interactionInitiatedBy, Where.ALL_TABLES).isAllowed() + interactionInitiatedBy.isPassThrough() + || collection.isVisible(rowElement(), interactionInitiatedBy, Where.ALL_TABLES).isAllowed() ? collection.get(rowElement(), interactionInitiatedBy) : null )); } + + }