From e39370f0ef7f7ccf37eefbdce836f7edc780cb9b Mon Sep 17 00:00:00 2001 From: David Caruana Date: Thu, 29 Nov 2007 15:14:58 +0000 Subject: [PATCH] Web Scripts: fix issue where the creation of javascript & template root repository objects was attempted even though not authenticated git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@7476 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../java/org/alfresco/repo/web/scripts/RepositoryContainer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/java/org/alfresco/repo/web/scripts/RepositoryContainer.java b/source/java/org/alfresco/repo/web/scripts/RepositoryContainer.java index d7b4d68c16..894fa04d56 100644 --- a/source/java/org/alfresco/repo/web/scripts/RepositoryContainer.java +++ b/source/java/org/alfresco/repo/web/scripts/RepositoryContainer.java @@ -158,7 +158,7 @@ public class RepositoryContainer extends AbstractRuntimeContainer */ private void addRepoParameters(Map params) { - if (AlfrescoTransactionSupport.getTransactionId() != null) + if (AlfrescoTransactionSupport.getTransactionId() != null && AuthenticationUtil.getCurrentAuthentication() != null) { NodeRef rootHome = repository.getRootHome(); if (rootHome != null && permissionService.hasPermission(rootHome, PermissionService.READ).equals(AccessStatus.ALLOWED))