diff --git a/source/java/org/alfresco/repo/avm/AVMRepository.java b/source/java/org/alfresco/repo/avm/AVMRepository.java index 06e3c8772a..aaeebba3d1 100644 --- a/source/java/org/alfresco/repo/avm/AVMRepository.java +++ b/source/java/org/alfresco/repo/avm/AVMRepository.java @@ -3200,7 +3200,10 @@ public class AVMRepository type = WCMModel.TYPE_AVM_LAYERED_CONTENT; } PermissionContext context = new PermissionContext(type); - context.addDynamicAuthorityAssignment(node.getBasicAttributes().getOwner(), PermissionService.OWNER_AUTHORITY); + + // We're doing the hand unrolling of the proxy because Hibernate/CGLIB proxies are broken + context.addDynamicAuthorityAssignment(AVMNodeUnwrapper.Unwrap(node).getBasicAttributes().getOwner(), PermissionService.OWNER_AUTHORITY); + // Pass in node aspects Set nodeAspectQNameIds = node.getAspects(); Set contextQNames = context.getAspects();