Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>spatialtranscriptomicsresearch</groupId>
<artifactId>api</artifactId>
<packaging>war</packaging>
<version>0.6.4</version>
<version>0.6.5</version>
<name>Spatial Transcriptomics Research API Server</name>
<url>http://maven.apache.org</url>

Expand Down
3 changes: 2 additions & 1 deletion src/main/java/com/st/serviceImpl/FeaturesServiceImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ public FeaturesMetadata getMetadata(String id) {
@Override
public InputStream find(String id) {
MongoUserDetails currentUser = customUserDetailsService.loadCurrentUser();
if (currentUser.isContentManager() || datasetIsGranted(id, currentUser)) {
// Check access
if (currentUser.isAdmin()|| datasetIsGranted(id, currentUser)) {
try {
String filename = id + ".gz";
// We cache the contents in a byte array so that the S3 stream can be closed ASAP.
Expand Down