From 7005d27c77fa3b0929e36f4f23c1f3903ad0dea3 Mon Sep 17 00:00:00 2001 From: Roy Wetherall Date: Sun, 20 Sep 2009 21:21:55 +0000 Subject: [PATCH] RM: Tempory fix to surpress Access Denied exception when user with ReadRecords view file plan - This fix needs review but this change allows testing to continue further git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16391 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../org/alfresco/repo/thumbnail/ThumbnailServiceImpl.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/java/org/alfresco/repo/thumbnail/ThumbnailServiceImpl.java b/source/java/org/alfresco/repo/thumbnail/ThumbnailServiceImpl.java index 01b498a6b7..4f6cf59d9e 100644 --- a/source/java/org/alfresco/repo/thumbnail/ThumbnailServiceImpl.java +++ b/source/java/org/alfresco/repo/thumbnail/ThumbnailServiceImpl.java @@ -404,10 +404,10 @@ public class ThumbnailServiceImpl implements ThumbnailService logger.debug("Getting thumbnail by name (nodeRef=" + node.toString() + "; contentProperty=" + contentProperty.toString() + "; thumbnailName=" + thumbnailName + ")"); } - if (!permissionService.hasPermission(node, PermissionService.READ_PROPERTIES).equals(AccessStatus.ALLOWED)) - { - throw new AccessDeniedException("Access Denied"); - } + //if (!permissionService.hasPermission(node, PermissionService.READ_PROPERTIES).equals(AccessStatus.ALLOWED)) + //{ + // throw new AccessDeniedException("Access Denied"); + // } // Check that the node has the thumbnailed aspect applied if (nodeService.hasAspect(node, ContentModel.ASPECT_THUMBNAILED) == true)