Commit f6987a4b authored by Labros Papadopoulos's avatar Labros Papadopoulos
Browse files

return new geographic site in case there in not one

parent 879bfc92
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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()  ) ) ){