mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-21 18:09:20 +00:00
RM: Tempory removal of explicit permission check relating to streamed content
- TODO need to review this change and come up with a more perminant solution git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16427 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -322,11 +322,15 @@ public class StreamContent extends AbstractWebScript
|
|||||||
if (logger.isDebugEnabled())
|
if (logger.isDebugEnabled())
|
||||||
logger.debug("Retrieving content from node ref " + nodeRef.toString() + " (property: " + propertyQName.toString() + ") (attach: " + attach + ")");
|
logger.debug("Retrieving content from node ref " + nodeRef.toString() + " (property: " + propertyQName.toString() + ") (attach: " + attach + ")");
|
||||||
|
|
||||||
|
// TODO
|
||||||
|
// This was commented out to accomadate records management permissions. We need to review how we cope with this
|
||||||
|
// hard coded permission checked.
|
||||||
|
|
||||||
// check that the user has at least READ_CONTENT access - else redirect to the login page
|
// check that the user has at least READ_CONTENT access - else redirect to the login page
|
||||||
if (permissionService.hasPermission(nodeRef, PermissionService.READ_CONTENT) == AccessStatus.DENIED)
|
// if (permissionService.hasPermission(nodeRef, PermissionService.READ_CONTENT) == AccessStatus.DENIED)
|
||||||
{
|
// {
|
||||||
throw new WebScriptException(HttpServletResponse.SC_FORBIDDEN, "Permission denied");
|
// throw new WebScriptException(HttpServletResponse.SC_FORBIDDEN, "Permission denied");
|
||||||
}
|
// }
|
||||||
|
|
||||||
// check If-Modified-Since header and set Last-Modified header as appropriate
|
// check If-Modified-Since header and set Last-Modified header as appropriate
|
||||||
Date modified = (Date)nodeService.getProperty(nodeRef, ContentModel.PROP_MODIFIED);
|
Date modified = (Date)nodeService.getProperty(nodeRef, ContentModel.PROP_MODIFIED);
|
||||||
|
Reference in New Issue
Block a user