From 375305b7d6986668fe6380895b805d77131dea52 Mon Sep 17 00:00:00 2001 From: Jan Vonka Date: Tue, 22 Jan 2008 09:42:55 +0000 Subject: [PATCH] =?UTF-8?q?Dynamic=20Models=20-=20build=20/=20unit=20test?= =?UTF-8?q?=20fix=20for=20"Access=20is=20Denied"=20issue=C2=A0(eg.=20Multi?= =?UTF-8?q?lingualContentServiceImplTest,=20MessageServiceImplTest,=20...)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@8050 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../alfresco/repo/dictionary/DictionaryModelType.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/source/java/org/alfresco/repo/dictionary/DictionaryModelType.java b/source/java/org/alfresco/repo/dictionary/DictionaryModelType.java index 4003b8aee6..e8078a7018 100644 --- a/source/java/org/alfresco/repo/dictionary/DictionaryModelType.java +++ b/source/java/org/alfresco/repo/dictionary/DictionaryModelType.java @@ -375,10 +375,13 @@ public class DictionaryModelType implements ContentServicePolicies.OnContentUpda public void onCreateNode(ChildAssociationRef childAssocRef) { NodeRef nodeRef = childAssocRef.getChildRef(); - Boolean value = (Boolean)nodeService.getProperty(nodeRef, ContentModel.PROP_MODEL_ACTIVE); - if ((value != null) && (value == true)) + if (nodeService.getType(nodeRef).equals(ContentModel.TYPE_DICTIONARY_MODEL)) { - queueModel(nodeRef); + Boolean value = (Boolean)nodeService.getProperty(nodeRef, ContentModel.PROP_MODEL_ACTIVE); + if ((value != null) && (value == true)) + { + queueModel(nodeRef); + } } }