diff --git a/pom.xml b/pom.xml index bef837b..fd71cb3 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ spatialtranscriptomicsresearch api war - 0.6.4 + 0.6.5 Spatial Transcriptomics Research API Server http://maven.apache.org diff --git a/src/main/java/com/st/serviceImpl/FeaturesServiceImpl.java b/src/main/java/com/st/serviceImpl/FeaturesServiceImpl.java index 3e56942..90558b2 100644 --- a/src/main/java/com/st/serviceImpl/FeaturesServiceImpl.java +++ b/src/main/java/com/st/serviceImpl/FeaturesServiceImpl.java @@ -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.