Skip to content
Snippets Groups Projects
Commit f6987a4b authored by Labros Papadopoulos's avatar Labros Papadopoulos
Browse files

return new geographic site in case there in not one

parent 879bfc92
No related branches found
No related tags found
1 merge request!25Tmf 674 feature
Pipeline #6259 passed
......@@ -65,6 +65,7 @@ public class GeographicSiteManagementApiController implements GeographicSiteMana
Individual ind = individualRepoService.findByUsername(principal.getName());
GeographicSite gs= geographicSiteManagementService.findGeographicSiteByRelatedPartyId(ind.getId());
if (gs==null) gs =new GeographicSite();
return new ResponseEntity<GeographicSite>(gs,HttpStatus.OK);
} else if ( authentication.getAuthorities().contains( new SimpleGrantedAuthority( UserRoleType.ROLE_ADMIN.getValue() ) ) ){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment