From 6239f66c2e70fc1a657440cb6d9651f769e4314a Mon Sep 17 00:00:00 2001 From: philip Vissenaekens Date: Fri, 12 Feb 2016 15:03:17 +0100 Subject: [PATCH] DS-2887 --- .../main/java/org/dspace/app/xmlui/cocoon/BitstreamReader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dspace-xmlui/src/main/java/org/dspace/app/xmlui/cocoon/BitstreamReader.java b/dspace-xmlui/src/main/java/org/dspace/app/xmlui/cocoon/BitstreamReader.java index 897c4d246009..b276299ca751 100644 --- a/dspace-xmlui/src/main/java/org/dspace/app/xmlui/cocoon/BitstreamReader.java +++ b/dspace-xmlui/src/main/java/org/dspace/app/xmlui/cocoon/BitstreamReader.java @@ -314,7 +314,7 @@ else if(dso!=null){ return; } else{ - if(ConfigurationManager.getProperty("request.item.type")==null|| + if(StringUtils.isBlank(ConfigurationManager.getProperty("request.item.type")) || ConfigurationManager.getProperty("request.item.type").equalsIgnoreCase("logged")){ // The user does not have read access to this bitstream. Interrupt this current request // and then forward them to the login page so that they can be authenticated. Once that is