Skip to content
Snippets Groups Projects
Commit af13746d authored by ludovic Blanchet's avatar ludovic Blanchet Committed by Gaëlle FOURNIER
Browse files

Fix Ontologies API permission


Co-authored-by: default avatarbenemart <benedicte.martinez@cea.fr>
parent 777fc2ef
No related branches found
No related tags found
No related merge requests found
......@@ -92,10 +92,10 @@ public class OntologyExternalController {
return ontologyExternalService.getAllPaginated(page, size, criteria, orderBy, direction);
}
@Secured(ServicesData.ROLE_GET_FILE_FORMATS)
@Secured(ServicesData.ROLE_GET_ONTOLOGIES)
@GetMapping(path = RestApi.PATH_REFERENTIAL_ID)
public OntologyDto getOne(final @PathVariable("identifier") String identifier) {
LOGGER.debug("get file format identifier={}");
LOGGER.debug("get ontology identifier={}");
return ontologyExternalService.getOne(identifier);
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment