Ejemplo n.º 1
0
  @Override
  public Profile updateProfile(Profile profile) {
    if (!authService.isUserAuthorized(ROLE_CURATOR, profile)) {
      throw new NotAuthorizedException();
    }

    return profilePersister.update(profile);
  }