Skip to content

Commit

Permalink
SAK-32164 - Changing permission for zipdownload to content.read (saka…
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmerino authored and juanjmerono committed Feb 15, 2017
1 parent 51166be commit dc52496
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10487,7 +10487,7 @@ protected void zipDownloadItems(SessionState state, Set<String> zipDownloadIdSet
break;
}
}
else if(contentService.allowUpdateResource(showId))
else if(contentService.allowGetResource(showId))
{
entity = contentService.getResource(showId);
currentEntitySize = ((ContentResource)entity).getContentLength();
Expand All @@ -10509,12 +10509,12 @@ else if(contentService.allowUpdateResource(showId))
}

ListItem item = new ListItem(entity);
if(item.isCollection() && contentService.allowUpdateCollection(showId))
if(item.isCollection() && contentService.allowGetCollection(showId))
{
item.setSize(ResourcesAction.getFileSizeString(currentEntitySize, rb));
zipDownloadItems.add(item);
}
else if(!item.isCollection() && contentService.allowUpdateResource(showId))
else if(!item.isCollection() && contentService.allowGetResource(showId))
{
zipDownloadItems.add(item);
}
Expand Down

0 comments on commit dc52496

Please sign in to comment.