Skip to content

Commit

Permalink
allow bulk-submit for non-super users
Browse files Browse the repository at this point in the history
  • Loading branch information
dipayan1985 committed Dec 18, 2024
1 parent 11569fe commit cd9e29e
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.server.ResponseStatusException;
import uk.ac.ebi.biosamples.BioSamplesProperties;
import uk.ac.ebi.biosamples.exceptions.GlobalExceptions;
import uk.ac.ebi.biosamples.model.*;
Expand Down Expand Up @@ -263,9 +262,9 @@ public ResponseEntity<List<Sample>> postV2NoValidation(@RequestBody final List<S
throw new GlobalExceptions.WebinUserLoginUnauthorizedException();
}

if (!webinAuthenticationService.isWebinSuperUser(principle)) {
/*if (!webinAuthenticationService.isWebinSuperUser(principle)) {
throw new ResponseStatusException(HttpStatus.NOT_ACCEPTABLE, "POST for super users only");
}
}*/

final List<Sample> createdSamples =
samples.stream()
Expand Down

0 comments on commit cd9e29e

Please sign in to comment.