Workaround fix

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@8593 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jan Vonka
2008-03-26 14:51:08 +00:00
parent 1771aefa10
commit 4763d7e598

View File

@@ -3200,7 +3200,10 @@ public class AVMRepository
type = WCMModel.TYPE_AVM_LAYERED_CONTENT; type = WCMModel.TYPE_AVM_LAYERED_CONTENT;
} }
PermissionContext context = new PermissionContext(type); 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 // Pass in node aspects
Set<Long> nodeAspectQNameIds = node.getAspects(); Set<Long> nodeAspectQNameIds = node.getAspects();
Set<QName> contextQNames = context.getAspects(); Set<QName> contextQNames = context.getAspects();