mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-13 21:13:19 +00:00
Don't expand collections.all list
This commit is contained in:
@@ -87,7 +87,7 @@ public class CollectionsResource {
|
|||||||
ArrayList<org.dspace.rest.common.Collection> collectionArrayList = new ArrayList<org.dspace.rest.common.Collection>();
|
ArrayList<org.dspace.rest.common.Collection> collectionArrayList = new ArrayList<org.dspace.rest.common.Collection>();
|
||||||
for(org.dspace.content.Collection collection : collections) {
|
for(org.dspace.content.Collection collection : collections) {
|
||||||
if(AuthorizeManager.authorizeActionBoolean(context, collection, org.dspace.core.Constants.READ)) {
|
if(AuthorizeManager.authorizeActionBoolean(context, collection, org.dspace.core.Constants.READ)) {
|
||||||
org.dspace.rest.common.Collection restCollection = new org.dspace.rest.common.Collection(collection, expand, context, limit, offset);
|
org.dspace.rest.common.Collection restCollection = new org.dspace.rest.common.Collection(collection, null, context, limit, offset);
|
||||||
collectionArrayList.add(restCollection);
|
collectionArrayList.add(restCollection);
|
||||||
} // Not showing restricted-access collections
|
} // Not showing restricted-access collections
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user