Skip to content

Commit

Permalink
LSNBLDR-792: On a public site, the resources folder listing isnt show…
Browse files Browse the repository at this point in the history
…n for non-logged in users (sakaiproject#5150)
  • Loading branch information
nicholaswilson100 authored and jonespm committed Jan 2, 2018
1 parent 13eacd4 commit e42b40d
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,12 +182,6 @@ public List<ContentItem> getContentCollectionForSite(EntityView view) {
@EntityCustomAction(action="resources", viewKey=EntityView.VIEW_LIST)
public List<EntityContent> getResources(EntityView view, Map<String, Object> params)
throws EntityPermissionException {
String userId = developerHelperService.getCurrentUserId();
if (userId == null) {
throw new SecurityException(
"This action is not accessible to anon and there is no current user.");
}

Map<String, Object> parameters = getQueryMap((String)params.get("queryString"));
Time timeStamp = getTime((String)parameters.get(PARAMETER_TIMESTAMP));

Expand Down

0 comments on commit e42b40d

Please sign in to comment.