Project

General

Profile

« Previous | Next » 

Revision 61441

merged branch aai_roles_new to trunk

View differences:

MonitorController.java
29 29
    @RequestMapping(value = "/getJobsOfUser" , method = RequestMethod.GET,
30 30
            produces = MediaType.APPLICATION_JSON_VALUE)
31 31
    @ResponseBody
32
    @PreAuthorize("hasRole('ROLE_USER')")
32
    @PreAuthorize("hasAuthority('REGISTERED_USER')")
33 33
    public JobsOfUser getJobsOfUser(@RequestParam(value = "jobType", required = false)
34 34
                                    @ApiParam(value = "Equals to filter job type on validation history page") String jobType,
35 35
                                    @RequestParam("offset") @ApiParam(value = "Page number", required = true) String offset,
......
43 43

  
44 44
    @RequestMapping(value = "/getJobsOfUserPerValidationStatus" , method = RequestMethod.GET,produces = MediaType.APPLICATION_JSON_VALUE)
45 45
    @ResponseBody
46
    @PreAuthorize("hasRole('ROLE_USER')")
46
    @PreAuthorize("hasAuthority('REGISTERED_USER')")
47 47
    public int getJobsOfUserPerValidationStatus(@RequestBody String jobType,
48 48
                                                @RequestBody String validationStatus) throws JSONException {
49 49
        return monitorService.getJobsOfUserPerValidationStatus(((OIDCAuthenticationToken) SecurityContextHolder.getContext().getAuthentication()).getUserInfo().getEmail(), jobType, validationStatus);

Also available in: Unified diff