This commit is contained in:
Ioannis Diplas 2019-11-29 09:58:55 +00:00
parent 5430cca2b7
commit 1590f44b9f
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ public class PiWikController {
@RequestMapping(value = "/getOpenaireId/{repositoryId}" , method = RequestMethod.GET,produces = MediaType.APPLICATION_JSON_VALUE) @RequestMapping(value = "/getOpenaireId/{repositoryId}" , method = RequestMethod.GET,produces = MediaType.APPLICATION_JSON_VALUE)
@ResponseBody @ResponseBody
@PreAuthorize("hasRole('ROLE_ADMIN') or hasRole('ROLE_PROVIDE_ADMIN') or ((@piWikService.getPiwikSiteForRepo(#repositoryId).requestor==authentication.userInfo.email or @piWikService.getPiwikSiteForRepo(#repositoryId).requestor) and hasRole('ROLE_USER'))") @PreAuthorize("hasRole('ROLE_ADMIN') or hasRole('ROLE_PROVIDE_ADMIN') or ((@piWikService.getPiwikSiteForRepo(#repositoryId).requestor==authentication.userInfo.email or @piWikService.getPiwikSiteForRepo(#repositoryId).requestor=='null') and hasRole('ROLE_USER'))")
public String getOpenaireId(String repositoryid){ public String getOpenaireId(String repositoryid){
return piWikService.getOpenaireId(repositoryid); return piWikService.getOpenaireId(repositoryid);
} }