Bug fix
This commit is contained in:
parent
5430cca2b7
commit
1590f44b9f
|
@ -161,7 +161,7 @@ public class PiWikController {
|
|||
|
||||
@RequestMapping(value = "/getOpenaireId/{repositoryId}" , method = RequestMethod.GET,produces = MediaType.APPLICATION_JSON_VALUE)
|
||||
@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){
|
||||
return piWikService.getOpenaireId(repositoryid);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue