Revision 61455
Added by Konstantinos Spyrou over 2 years ago
RepositoryController.java | ||
---|---|---|
86 | 86 |
@RequestMapping(value = "/getRepositoryById/{id}", method = RequestMethod.GET, |
87 | 87 |
produces = MediaType.APPLICATION_JSON_VALUE) |
88 | 88 |
@ResponseBody |
89 |
@PostAuthorize("hasAnyRole('SUPER_ADMINISTRATOR', 'CONTENT_PROVIDER_DASHBOARD_ADMINISTRATOR') or @authorizationService.isMemberOf(#id) or (returnObject.registeredBy=='null' and hasAuthority('REGISTERED_USER'))")
|
|
89 |
@PostAuthorize("hasAnyAuthority('SUPER_ADMINISTRATOR', 'CONTENT_PROVIDER_DASHBOARD_ADMINISTRATOR') or @authorizationService.isMemberOf(#id) or (returnObject.registeredBy=='null' and hasAuthority('REGISTERED_USER'))")
|
|
90 | 90 |
public Repository getRepositoryById(@PathVariable("id") String id) throws JSONException, ResourceNotFoundException { |
91 | 91 |
Repository repo = repositoryService.getRepositoryById(id); |
92 | 92 |
|
Also available in: Unified diff
replaced hasAnyRole with hasAnyAuthority