Project

General

Profile

« Previous | Next » 

Revision 56633

Adding permissions for ROLE_PROVIDE_ADMIN to searchRegisteredRepositories

View differences:

modules/uoa-repository-manager-service/branches/dev-api/src/main/java/eu/dnetlib/repo/manager/controllers/RepositoryController.java
55 55
    @RequestMapping(value = "/searchRegisteredRepositories/{page}/{size}",method = RequestMethod.GET,
56 56
            produces = MediaType.APPLICATION_JSON_VALUE)
57 57
    @ResponseBody
58
    @PreAuthorize("hasRole('ROLE_ADMIN')")
58
    @PreAuthorize("hasRole('ROLE_ADMIN') or hasRole('ROLE_PROVIDE_ADMIN')")
59 59
    public List<RepositorySnippet> searchRegisteredRepositories(@RequestParam(name="country", required=false) String country,
60 60
                                                                @RequestParam(name="typology", required=false) String typology,
61 61
                                                                @RequestParam(name="englishName", required=false) String englishName,

Also available in: Unified diff