mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
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:
@@ -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();
|
||||||
|
Reference in New Issue
Block a user